-
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.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 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,35 @@ | ||
#!/bin/bash | ||
|
||
yarn test || exit 1 | ||
|
||
# Release version | ||
git checkout master || exit 1 | ||
git merge develop || exit 1 | ||
|
||
npm --no-git-tag-version version patch || exit 1 | ||
|
||
yarn test || exit 1 | ||
|
||
RELEASE_VERSION=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json) | ||
echo "Release version: ${RELEASE_VERSION}" | ||
|
||
git add package.json || exit 1 | ||
git commit -m "version release" || exit 1 | ||
git tag "v${RELEASE_VERSION}" || exit 1 | ||
git push -u origin master || exit 1 | ||
|
||
yarn bundle || exit 1 | ||
yarn build || exit 1 | ||
|
||
# Generate next development version | ||
git checkout develop || exit 1 | ||
git rebase master || exit 1 | ||
|
||
npm --no-git-tag-version version minor || exit 1 | ||
RELEASE_VERSION=$(sed 's/.*"version": "\(.*\)".*/\1/;t;d' ./package.json)-SNAPSHOT | ||
echo "Next development version: ${DEV_VERSION}" | ||
npm --no-git-tag-version version ${RELEASE_VERSION} || exit 1 | ||
|
||
git add package.json || exit 1 | ||
git commit -m "next development version" || exit 1 | ||
git push -u origin develop || exit 1 |