Skip to content

Commit f3c639a

Browse files
author
uid10804
committed
ci(travis): update condition to only publish if it is no pr on master branch
1 parent 4080eaa commit f3c639a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- npm run test
2929
- npx snyk test
3030
- stage: release
31-
if: branch = master
31+
if: (type = push AND branch = master)
3232
before_script:
3333
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
3434
- git remote add pub https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git

0 commit comments

Comments
 (0)