Skip to content

Commit 341ec48

Browse files
committed
trying travis release
1 parent 9fdaafa commit 341ec48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

release.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash
22
set -ev
33
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)
4+
npm run build
5+
git tag $(node -p "require('./package.json').version")\ \($(date +'%Y-%m-%
6+
d')\)
7+
export PACKAGE=$(npm pack --silent)
8+
else
9+
echo Skipping packaging because this is not master, or it is a pull request.
710
fi

0 commit comments

Comments
 (0)