Unverified Commit 8b82b294 authored by Robert Knight's avatar Robert Knight Committed by GitHub

Merge pull request #1399 from hypothesis/fix-double-build

Don't built the client a second time when running "npm publish"
parents e5571335 efbdc995
...@@ -157,13 +157,8 @@ stage('Publish') { ...@@ -157,13 +157,8 @@ stage('Publish') {
// Publish the updated package to the npm registry. // Publish the updated package to the npm registry.
// Use `npm` rather than `yarn` for publishing. // Use `npm` rather than `yarn` for publishing.
// See https://github.com/yarnpkg/yarn/pull/3391. // See https://github.com/yarnpkg/yarn/pull/3391.
//
// `npm publish` currently re-builds the client, so `SIDEBAR_APP_URL` must be set.
sh "echo '//registry.npmjs.org/:_authToken=${env.NPM_TOKEN}' >> \$HOME/.npmrc" sh "echo '//registry.npmjs.org/:_authToken=${env.NPM_TOKEN}' >> \$HOME/.npmrc"
sh """ sh "npm publish --tag ${npmTag}"
export SIDEBAR_APP_URL=https://hypothes.is/app.html
npm publish --tag ${npmTag}
"""
sh "scripts/wait-for-npm-release.sh ${npmTag}" sh "scripts/wait-for-npm-release.sh ${npmTag}"
// Deploy the client to cdn.hypothes.is, where the embedded // Deploy the client to cdn.hypothes.is, where the embedded
......
...@@ -155,7 +155,6 @@ ...@@ -155,7 +155,6 @@
"format": "prettier --list-different --write '**/*.{js,scss}'", "format": "prettier --list-different --write '**/*.{js,scss}'",
"test": "gulp test", "test": "gulp test",
"report-coverage": "codecov -f coverage/coverage-final.json", "report-coverage": "codecov -f coverage/coverage-final.json",
"version": "make clean build/manifest.json", "version": "make clean build/manifest.json"
"prepublishOnly": "make clean build/manifest.json"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment