Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhoww committed Jun 2, 2022
1 parent 192d94f commit fc4717a
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 @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"version": "sed -i \"s/__version__.*/__version__ = \\\"$npm_package_version\\\"/\" $npm_package_name/__init__.py; sed -i \"s/__version__ = '.*';/__version__ = '$npm_package_version';/\" $npm_package_name/public/js/index.js; git add -A .",
"prerelease": "git tag -d v${npm_package_version}; git push; git log --pretty=\"%s\" $(git describe --tags --abbrev=0)..HEAD^1 > /tmp/${npm_package_name}_release_notes",
"prerelease": "git log --pretty=\"%s\" $(git describe --abbrev=0 --tags $(git describe --abbrev=0)^)..$(git describe --abbrev=0)^ > /tmp/${npm_package_name}_release_notes",
"release": "gh release create v${npm_package_version} -F /tmp/${npm_package_name}_release_notes"
},
"repository": {
Expand Down

0 comments on commit fc4717a

Please sign in to comment.