From 4e67a0548ccdca699e14a4b2e30b69eea00b3871 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 14 Jun 2018 13:56:18 -0400 Subject: [PATCH] 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. --- .travis.yml | 3 ++- package.json | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c81569..a68c812 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,13 +18,14 @@ jobs: node_js: 8 - stage: release node_js: 8 - script: skip + 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: diff --git a/package.json b/package.json index 2a98427..74ef596 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,7 @@ "build": "webpack --bail", "watch": "webpack --watch", "lint": "eslint .", - "tap": "tap test/effects/*.js test/*.js", - "prepublish": "npm run build" + "tap": "tap test/effects/*.js test/*.js" }, "repository": { "type": "git",