Skip to content

Commit

Permalink
[INTERNAL] package.json: Move postversion git push to prepublishOnly
Browse files Browse the repository at this point in the history
This allows our CI to do some final validation between "npm version" and
"npm publish". I.e. validating the reduced npm-shrinkwrap-json that is
created after "npm version" created the release commit".

Related change: SAP/ui5-cli#321
  • Loading branch information
RandomByte committed Nov 20, 2023
1 parent 2cf246d commit 2d23938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"test": "npm run lint && npm run coverage && npm run depcheck",
"preversion": "npm test",
"version": "git-chglog --next-tag v$npm_package_version -o CHANGELOG.md 0.7.0.. && git add CHANGELOG.md",
"postversion": "git push --follow-tags",
"prepublishOnly": "git push --follow-tags",
"release-note": "git-chglog -c .chglog/release-config.yml v$npm_package_version",
"depcheck": "depcheck --ignores clean-css,source-map"
},
Expand Down

0 comments on commit 2d23938

Please sign in to comment.