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 22
22
run : ./push-package.sh
23
23
env :
24
24
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)
8
8
. ./pre-check.sh
9
9
10
10
echo " 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
12
14
13
15
case " ${confirm} " in
14
16
y|Y ) echo " Tagging and pushing ${version} " ;;
15
17
* ) echo " Aborting" ; exit 0;;
16
18
esac
17
19
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
20
24
21
25
npm publish
22
26
npm version patch -m " Update to version ${version} "
You can’t perform that action at this time.
0 commit comments