scratch-audio/.travis.yml
Ray Schamp 4e67a0548c Don't use npm prepublish
Be explicit and build on the release step. This way it doesn't matter which version of npm we use (since prepublish is deprecated in npm 5). Also because we don't actually need to build to use scratch-audio in scratch-gui, so it doesn't help to run build on npm install anyway.
2018-06-14 13:57:36 -04:00

34 lines
709 B
YAML

language: node_js
node_js:
- 8
- node
env:
matrix:
- NPM_SCRIPT="tap -- --jobs=4"
cache:
directories:
- node_modules
script: npm run $NPM_SCRIPT
jobs:
include:
- env: NPM_SCRIPT=build
node_js: 8
if: not (branch in (master, develop) and type != pull_request)
- env: NPM_SCRIPT=lint
node_js: 8
- stage: release
node_js: 8
env: NPM_SCRIPT=build
before_deploy:
- npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S)
deploy:
- provider: npm
on:
all_branches: true
skip_cleanup: true
email: $NPM_EMAIL
api_key: $NPM_TOKEN
stages:
- test
- name: release
if: branch in (master, develop) and type != pull_request