Skip to content

Commit

Permalink
feat: add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
dominickolbe committed Aug 24, 2021
1 parent 5c528bb commit 5eee763
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bin/release.sh
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

0 comments on commit 5eee763

Please sign in to comment.