Skip to content

Commit

Permalink
Try fixing npm run version on npm run version
Browse files Browse the repository at this point in the history
For unknown reason, `npm run version` (`np`) fails with the exit status 128.
  • Loading branch information
ybiquitous committed Mar 26, 2024
1 parent d469bcd commit 9b2ca9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/releasing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
with:
commit: Prepare ${{ steps.get-changeset-status.outputs.new-version }}
title: Prepare ${{ steps.get-changeset-status.outputs.new-version }}
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
# We're also restoring `package.json` because we're using `np` for publishing
version: npm run version
version: npm run changeset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test-coverage": "npm test --ignore-scripts -- --coverage",
"test-only": "npm test --ignore-scripts",
"version": "changeset version && node .changeset/rewrite-changelog.mjs CHANGELOG.md",
"postversion": "git restore package.json",
"watch": "npm test --ignore-scripts -- --watch"
"watch": "npm test --ignore-scripts -- --watch",
"changeset": "changeset version && node .changeset/rewrite-changelog.mjs CHANGELOG.md && git restore package.json"
},
"lint-staged": {
"*.{js,mjs}": "eslint --cache --fix",
Expand Down

0 comments on commit 9b2ca9c

Please sign in to comment.