Commit 975843f3 authored by Robert Knight's avatar Robert Knight

Revert to using npm rather than Yarn when publishing release package

`yarn publish` is currently an interactive command and therefore not
suitable for use on a CI system. See
https://github.com/yarnpkg/yarn/pull/3391 for details.
parent 058377a5
......@@ -23,8 +23,10 @@ node {
withCredentials([
[$class: 'StringBinding', credentialsId: 'npm-token', variable: 'NPM_TOKEN']]) {
// Use `npm` rather than `yarn` for publishing.
// See https://github.com/yarnpkg/yarn/pull/3391.
sh "echo '//registry.npmjs.org/:_authToken=${env.NPM_TOKEN}' >> \$HOME/.npmrc"
sh "yarn publish"
sh "npm publish"
}
}
......
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