Skip to content

Commit 36c42fa

Browse files
committed
chore: use semantic commit for npm version and push only version tag
Configure npm version to use "chore: release v%s" commit message format. Push only the specific version tag in postversion to avoid major tag conflict with workflow-managed v7 tag.
1 parent 5de9358 commit 36c42fa

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
message="chore: release v%s"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"check:clean": "npx tsx src/scripts/check-clean.ts",
4040
"preversion": "npm run all && npm run check:clean",
4141
"version": "git add package.json package-lock.json",
42-
"postversion": "git push && git push --tags"
42+
"postversion": "git push && git push origin v$npm_package_version"
4343
},
4444
"license": "MIT",
4545
"dependencies": {

0 commit comments

Comments
 (0)