Skip to content

Commit d79ecd5

Browse files
authored
fix: introduce shared travis config (#58)
fix: publish to both registries
1 parent 50b1ce9 commit d79ecd5

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.travis.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
version: ~> 1.0
2-
import: Typeform/travis-shared-config:package-config.yml@master
3-
41
language: node_js
52
node_js:
6-
- "12"
3+
- '12'
74

85
branches:
96
only:
@@ -17,7 +14,7 @@ notifications:
1714
email: false
1815

1916
env:
20-
VERSION: "$TRAVIS_BUILD_NUMBER"
17+
VERSION: '$TRAVIS_BUILD_NUMBER'
2118

2219
before_install:
2320
- yarn
@@ -31,5 +28,7 @@ script:
3128
- yarn test:integration
3229

3330
after_success:
34-
- yarn semantic-release
35-
31+
- yarn run semantic-release
32+
- npm config set '//npm.pkg.github.com/:_authToken' $GH_TOKEN
33+
- npm config set registry https://npm.pkg.github.com/@typeform
34+
- test $TRAVIS_EVENT_TYPE = "push" && test $TRAVIS_BRANCH = "master" && npm publish

0 commit comments

Comments
 (0)