-
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
1 parent
5c528bb
commit 5eee763
Showing
1 changed file
with
30 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,30 @@ | ||
#!/bin/bash | ||
|
||
echo " " && echo "### Start release task ###" && echo " " | ||
|
||
echo "➜ delete node_modules and yarn.lock" && echo " " | ||
rm -rf node_modules/ yarn.lock yarn-error.log lib/ | ||
|
||
echo "➜ run yarn cache clean" && echo " " | ||
yarn cache clean --silent | ||
|
||
echo "➜ run yarn install" && echo " " | ||
yarn install --silent | ||
|
||
echo "➜ build" && echo " " | ||
yarn build || exit 1; | ||
|
||
echo "➜ run tests" && echo " " | ||
yarn test || exit 1; | ||
|
||
echo "➜ create new version" && echo " " | ||
npx standard-version -y | ||
|
||
echo "➜ build again with new version" && echo " " | ||
yarn build || exit 1; | ||
|
||
echo "➜ git push" && echo " " | ||
git push --follow-tags origin master | ||
|
||
echo "➜ release new version on npm" && echo " " | ||
npm publish |