Skip to content

Commit

Permalink
fix(travis): fix travis 'ngx-bootstrap-ci unpublish' (#5116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domainv authored Mar 20, 2019
1 parent 42c8904 commit 85b5d87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
- npm ci
- npm run build
- npm run ci:update-pkg
- if [[ "$TRAVIS_PULL_REQUEST" != false ]]; then export NPM_AUTH_TOKEN_CI=$NPM_AUTH_TOKEN_CI_PR; fi
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- cd dist
- npm publish --tag $TRAVIS_COMMIT
Expand Down Expand Up @@ -135,7 +136,7 @@ jobs:
after_script:
- cd node_modules/ngx-bootstrap
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- npm unpublish --tag $TRAVIS_COMMIT --force
- if [[ "$TRAVIS_PULL_REQUEST" != false ]]; then npm unpublish --tag $TRAVIS_COMMIT --force; fi

# deploy to ngx-bootstrap.surge.sh
- &surge
Expand Down Expand Up @@ -236,6 +237,10 @@ jobs:
env:
- CI_THREAD_INDEX=3.1x-electron
- BASE_URL=http://ngx-bootstrap-latest.surge.sh/#/
after_script:
- cd node_modules/ngx-bootstrap
- npm config set '//registry.npmjs.org/:_authToken' $NPM_AUTH_TOKEN_CI
- npm unpublish --tag $TRAVIS_COMMIT --force
<<: *testPostDeploy
- script:
name: "Cypress on gh-pages after deploy 1thread"
Expand Down

0 comments on commit 85b5d87

Please sign in to comment.