File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11# 🚀 How to release
22
3+ - Branch requirement: run releases only from the ` master ` branch. The script enforces this and exits otherwise.
4+
351 . Run ` ./scripts/release <VERSION> ` to create a new version
462 . Go to GitHub Actions to monitor the build process
573 . Once complete, update and publish the release on GitHub
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ -z "$VERSION" ]; then
1010 exit 1
1111fi
1212
13+ CURRENT_BRANCH=$( git rev-parse --abbrev-ref HEAD 2> /dev/null)
14+ if [ " $CURRENT_BRANCH " != " master" ]; then
15+ echo " Error: Releases are only allowed from 'master' (current: '$CURRENT_BRANCH ')"
16+ exit 1
17+ fi
18+
1319node ./scripts/version-bump.js " $VERSION "
1420if [ $? -ne 0 ]; then
1521 echo " Error: Version bump failed"
You can’t perform that action at this time.
0 commit comments