Skip to content
Snippets Groups Projects
Commit 95216b5d authored by Ray Schamp's avatar Ray Schamp
Browse files

Publish to preview dist-tag on smoke and master

Continue to publish to latest for develop
parent fdde5dd5
No related branches found
No related tags found
No related merge requests found
......@@ -9,19 +9,21 @@ env:
global:
- NODE_ENV=production
- SMOKE_URL=https://llk.github.io/scratch-gui/$TRAVIS_PULL_REQUEST_BRANCH
- NPM_TAG=preview
cache:
directories:
- node_modules
install:
- npm --production=false install
- npm --production=false update
script:
- npm test
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run test:smoke; fi
before_deploy:
- npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S)
- if [ "$TRAVIS_BRANCH" == "develop" ]; then export NPM_TAG=latest; fi
- git config --global user.email $(git log --pretty=format:"%ae" -n1)
- git config --global user.name $(git log --pretty=format:"%an" -n1)
script:
- npm test
- if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] && [ "$TRAVIS_BRANCH" == "master" ]; then npm run test:smoke; fi
deploy:
- provider: script
on:
......@@ -39,9 +41,12 @@ deploy:
branch:
- master
- develop
- smoke
- npm-preview-channel
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
tag: $NPM_TAG
- provider: s3
on:
branch:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment