From 2d23938705b3071b97e02b8c0b53dc858d5f7e25 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Mon, 20 Nov 2023 14:20:08 +0100 Subject: [PATCH] [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". Related change: https://github.com/SAP/ui5-cli/pull/321 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8d074c..63925e7 100644 --- a/package.json +++ b/package.json @@ -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" },