Skip to content

Commit 470de43

Browse files
committed
build: copy CHANGELOG.md to package
1 parent a2bff3b commit 470de43

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ Only maintainers of the [neovim NPM package](https://www.npmjs.com/package/neovi
218218
```bash
219219
# Choose major/minor/patch as needed.
220220
npm version -w packages/neovim/ patch
221-
# Note: this copies the top-level README.md to packages/neovim.
221+
git commit -m 'release'
222+
# Note: this copies the top-level README.md/CHANGELOG.md to packages/neovim/.
222223
npm run publish:neovim
223224
export _VERSION=$(grep -o 'version": "[^"]\+' packages/neovim/package.json | sed 's/.*"//')
224225
git tag "v${_VERSION}"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"scripts": {
2727
"build": "npm run build --workspaces --if-present",
2828
"dev": "npm run --stream --parallel dev --workspaces --if-present",
29-
"publish:neovim": "cd packages/neovim && cp ../../README.md . && npm publish",
29+
"publish:neovim": "cd packages/neovim && cp ../../README.md . && cp ../../CHANGELOG.md . && npm publish",
3030
"test": "npm run test --workspaces --if-present",
3131
"test-build": "npm run test-build --workspaces --if-present",
3232
"test-staged": "npm run test-staged --workspaces --if-present -- --",

packages/neovim/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"files": [
4040
"README.md",
41+
"CHANGELOG.md",
4142
"scripts/nvim.js",
4243
"scripts/api.js",
4344
"bin/",

0 commit comments

Comments
 (0)