Merge pull request #91 from rschamp/travis-stages

Don't use npm prepublish
This commit is contained in:
Ray Schamp 2018-06-14 13:58:44 -04:00 committed by GitHub
commit 2ea0867df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -18,13 +18,14 @@ jobs:
node_js: 8 node_js: 8
- stage: release - stage: release
node_js: 8 node_js: 8
script: skip env: NPM_SCRIPT=build
before_deploy: before_deploy:
- npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S) - npm --no-git-tag-version version 0.1.0-prerelease.$(date +%Y%m%d%H%M%S)
deploy: deploy:
- provider: npm - provider: npm
on: on:
all_branches: true all_branches: true
skip_cleanup: true
email: $NPM_EMAIL email: $NPM_EMAIL
api_key: $NPM_TOKEN api_key: $NPM_TOKEN
stages: stages:

View file

@ -9,8 +9,7 @@
"build": "webpack --bail", "build": "webpack --bail",
"watch": "webpack --watch", "watch": "webpack --watch",
"lint": "eslint .", "lint": "eslint .",
"tap": "tap test/effects/*.js test/*.js", "tap": "tap test/effects/*.js test/*.js"
"prepublish": "npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",