File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 2222 run : ./push-package.sh
2323 env :
2424 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
25+ confirm : " y"
26+ SKIP_TAG : " y"
Original file line number Diff line number Diff line change @@ -8,15 +8,19 @@ version=$(cat package.json | jq -r .version)
88. ./pre-check.sh
99
1010echo " This will tag and publish package version ${version} "
11- read -p " Confirm [y/N]" confirm
11+ if [[ -z " $confirm " ]]; then
12+ read -p " Confirm [y/N]" confirm
13+ fi
1214
1315case " ${confirm} " in
1416 y|Y ) echo " Tagging and pushing ${version} " ;;
1517 * ) echo " Aborting" ; exit 0;;
1618esac
1719
18- git tag ${version}
19- git push upstream ${version}
20+ if [[ -z " $SKIP_TAG " ]]; then
21+ git tag ${version}
22+ git push upstream ${version}
23+ fi
2024
2125npm publish
2226npm version patch -m " Update to version ${version} "
You can’t perform that action at this time.
0 commit comments