Skip to content

Commit

Permalink
npm version already commits changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jul 4, 2022
1 parent f66dab1 commit 513a7af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ git config --local user.email "$RELEASE_GIT_EMAIL"
# > Support for this will arrive in the future.
# https://code.visualstudio.com/api/working-with-extensions/publishing-extension#prerelease-extensions
RELEASE_VERSION_WITHOUT_PRERELEASE=$(node -e "console.log(require('semver').coerce('$RELEASE_VERSION').version)")
npm version $RELEASE_VERSION_WITHOUT_PRERELEASE
git commit -a -m "release $RELEASE_VERSION_WITHOUT_PRERELEASE [no ci]"
npm version $RELEASE_VERSION_WITHOUT_PRERELEASE --message "release $RELEASE_VERSION_WITHOUT_PRERELEASE [no ci]"
git push origin $(git describe --tags --exact-match)
npm run package
npx vsce publish -p $RELEASE_VSCE_TOKEN $(node -e "console.log(require('semver').parse('$RELEASE_VERSION').prerelease.length > 0 ? '--pre-release' : '')")
Expand Down

0 comments on commit 513a7af

Please sign in to comment.