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 9fdaafa commit 341ec48Copy full SHA for 341ec48
release.sh
@@ -1,7 +1,10 @@
1
#!/bin/bash
2
set -ev
3
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_EVENT_TYPE}" == "push" ]]; then
4
- npm run build
5
- git tag $(node -p "require('./package.json').version")
6
- export PACKAGE=$(npm pack --silent)
+ npm run build
+ git tag $(node -p "require('./package.json').version")\ \($(date +'%Y-%m-%
+d')\)
7
+ export PACKAGE=$(npm pack --silent)
8
+else
9
+ echo Skipping packaging because this is not master, or it is a pull request.
10
fi
0 commit comments