Skip to content

Commit

Permalink
ci(changesets): write version bumps to package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 committed Oct 25, 2022
1 parent 6b73ce0 commit cfb6ff1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-ears-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gatsby-plugin-use-dark-mode': patch
---

Write version bumps to `package-lock.json`.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: npm run changeset:version
publish: npm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"scripts": {
"build": "cross-env NODE_ENV=production babel src --extensions \".ts,.tsx\" --out-dir .",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:version": "changeset version && npm install --package-lock-only",
"changeset:publish": "changeset publish",
"clean": "del-cli gatsby-node.js gatsby-ssr.js",
"format": "prettier --cache --write .",
Expand Down

0 comments on commit cfb6ff1

Please sign in to comment.