-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pre-publish script): Add pre-publish shell script to support sta…
…ndard-version prerelease (#57) * Add script for pre-publish Add prerelease for standard-version * Update * Remove extra changes * Update script Skip changelog when not in master Add -e flash to bash Move commands to run tests out of script * Revert version
- Loading branch information
Showing
3 changed files
with
47 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash -e | ||
|
||
npm install | ||
git diff --quiet | ||
|
||
BRANCH=$(git symbolic-ref --short HEAD) | ||
|
||
if [ "$BRANCH" == 'master' ] | ||
then | ||
npx standard-version | ||
else | ||
npx standard-version --prerelease "$BRANCH" --skip.changelog=true | ||
fi | ||
|
||
git push --follow-tags origin "$BRANCH" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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