File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- set -euo pipefail
1+ #! /bin/sh
2+ set -eu
23
4+ echo " π Checking branch..."
35# check if main branch is the current branch
46if [ " $( git branch --show-current) " != " main" ]; then
5- echo " Error: not on main branch"
7+ echo " β Error: not on main branch"
68 exit 1
79fi
10+ echo " β On main branch"
811
12+ echo " π Checking working tree..."
913# check if main branch is clean
1014if ! git diff-index --quiet HEAD --; then
11- echo " Error: main branch is not clean"
15+ echo " β Error: main branch is not clean"
1216 exit 1
1317fi
18+ echo " β Working tree is clean"
1419
20+ echo " "
21+ echo " π¦ Bumping version..."
1522pnpm version patch -m " chore(release): v%s [skip ci]"
1623
24+ echo " "
25+ echo " π Publishing to npm..."
1726pnpm publish --no-git-checks
1827
28+ echo " "
29+ echo " π€ Pushing to origin..."
1930git push origin HEAD:main --follow-tags
31+
32+ echo " "
33+ echo " β
Done!"
You canβt perform that action at this time.
0 commit comments