Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 9d59b28

Browse files
committed
chore: fix release script so that a version bump level is required
[ci skip]
1 parent 187d0a4 commit 9d59b28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# make sure all our dependencies are installed so we can publish docs
55
npm install
66

7+
# guard against stupid
8+
if [ -z "$1" ]; then
9+
echo "You must specify a new version level: [patch, minor, major]";
10+
exit 1;
11+
fi
12+
713
# bump the version
814
echo "npm version $1"
915
npm version $1

0 commit comments

Comments
 (0)