Skip to content

Commit 4a39794

Browse files
committed
Move the .npmrc creation to a before_install step
1 parent 2874d87 commit 4a39794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ before_install:
1111
# Yarn defaults to an old version, make sure we
1212
# get an up to date version
1313
- npm install -g yarn
14+
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
1415
before_script:
1516
- cp config/ci.config.json config/project.json
1617
script:
@@ -34,6 +35,6 @@ addons:
3435
deploy:
3536
skip_cleanup: true
3637
provider: script
37-
script: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc && yarn release --canary
38+
script: yarn release --canary
3839
on:
3940
branch: master

0 commit comments

Comments
 (0)