You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a workaround except manually doing the commit and setting the tag? Especially setting the tag is cumbersome as I need to extract the version from package.json and eventually take tag-version-prefix setting into account.
Some solution alternatives I could think of:
Provide a command line option to override the git detection, e.g. --force-git or stg better
Workaround: create a postversion.sh file with following content and call it from npm script postversion:
git add package.json
git commit -m "chore: Bump version to $npm_package_version"
git tag -a $npm_config_tag_version_prefix$npm_package_version -m "$npm_package_version"
git push --follow-tags
npm sets up the environment variables npm_package_version and npm_config_tag_version_prefix automatically; which I can then use for commit message and tag name and annotation.
The text was updated successfully, but these errors were encountered: