Skip to content

Commit

Permalink
chore: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfaded committed Aug 22, 2024
1 parent 0fd5f93 commit a8bcc4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"type": "commonjs",
"scripts": {
"changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 --config ./changelog.config.js"
"changelog": "conventional-changelog -i CHANGELOG.md -s --config ./changelog.config.js"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ git add $SERVER_META_INFO_PATH
git add $README_PATH
git add $PACKAGE_JSON_PATH
git add $PACKAGE_LOCK_JSON_PATH
git tag -a $TAG -m "Release version $VERSION"
npm install
npm run changelog
git add CHANGELOG.md
git tag -a v$NEW_VERSION -m "Version $NEW_VERSION"
git commit -m "Update version to $VERSION"
git push --tags
git push origin tag v$NEW_VERSION
git push origin HEAD

echo "Version updated to $VERSION and tagged in Git."

0 comments on commit a8bcc4e

Please sign in to comment.