Skip to content

Commit ae51440

Browse files
committed
ci(changesets): write version bumps to package-lock.json
1 parent c49ea5f commit ae51440

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.changeset/fast-ducks-worry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'pwned': patch
3+
---
4+
5+
Write version bumps to `package-lock.json`.

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
id: changesets
118118
uses: changesets/action@v1
119119
with:
120+
version: npm run changeset:version
120121
publish: npm run changeset:publish
121122
env:
122123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"scripts": {
3434
"build": "babel src --extensions .js,.ts --out-dir lib --source-maps --ignore \"**/*.test.ts\",\"**/*.test.js\",\"**/__mocks__/\"",
3535
"changeset": "changeset",
36-
"changeset:version": "changeset version",
36+
"changeset:version": "changeset version && npm install --package-lock-only",
3737
"changeset:publish": "changeset publish",
3838
"check-types": "tsc",
3939
"clean": "rimraf lib coverage",

0 commit comments

Comments
 (0)