We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8a2272 commit 571975cCopy full SHA for 571975c
build-package.sh
@@ -1,5 +1,8 @@
1
#!/bin/bash
2
3
+# exit on any error
4
+set -e
5
+
6
. ./pre-check.sh
7
8
tsc
push-package.sh
@@ -1,12 +1,21 @@
-if [[ "${1}x" == "x" ]]; then
- echo "Usage: ${0} <version>"
- exit 1
-fi
+version=$(cat package.json | jq -r .version)
9
10
+echo "This will tag and publish package version ${version}"
11
+read -p "Confirm [y/N]" confirm
12
13
+case "${confirm}" in
14
+ y|Y ) echo "Tagging and pushing ${version}";;
15
+ * ) echo "Aborting"; exit 0;;
16
+esac
17
18
git tag ${1}
-git push upstream ${tag}
19
+git push upstream ${1}
20
21
npm publish
0 commit comments