-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Cleanup release scripts (#182)
- Loading branch information
Showing
3 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Determine current npm version and calculate next patch version | ||
current=$(node -p -e "require('./package.json').version") | ||
next=$(npx semver $current -i patch) | ||
|
||
# Create a new branch, update the version, and create a new tag | ||
git checkout -b v$next-pre | ||
npm version --git-tag-version=false $next | ||
git tag $next-pre | ||
git push --tags | ||
|
||
# Publish a pre-release version of the extension to the Marketplace | ||
npx vsce publish --pre-release |