mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
4e67a0548c
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.
34 lines
709 B
YAML
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
|