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 61b4170 commit 84157a5Copy full SHA for 84157a5
.travis/script.sh
@@ -59,10 +59,11 @@ deploy() {
59
npm config set registry https://registry.npmjs.org/
60
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
61
62
- # dry publish run for non master
+ # dry publish run
63
npm pack
64
- if [ "$TRAVIS_BRANCH" == "master" ]
65
- then
+
+ # publish only when tagged and not a pull request
66
+ if [[ "${TRAVIS_TAG}" != "" ]] && [[ "${TRAVIS_PULL_REQUEST}" = "false" ]]; then
67
npm publish $(ls json-stream-stringify-*.tgz)
68
fi
69
}
0 commit comments