Skip to content

Commit d0e541d

Browse files
committed
[INTERNAL] package.json: Move postversion git push to prepublishOnly
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".
1 parent 5416169 commit d0e541d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"jsdoc-watch": "npm run jsdoc && chokidar \"./lib/**/*.js\" -c \"npm run jsdoc-generate\"",
3838
"preversion": "npm test",
3939
"version": "git-chglog --next-tag v$npm_package_version -o CHANGELOG.md && git add CHANGELOG.md",
40-
"postversion": "git push --follow-tags",
40+
"prepublishOnly": "git push --follow-tags",
4141
"release-note": "git-chglog -c .chglog/release-config.yml v$npm_package_version",
4242
"report-coveralls": "nyc report --reporter=text-lcov | COVERALLS_PARALLEL=true coveralls"
4343
},

0 commit comments

Comments
 (0)