Commit fb37609b authored by Robert Knight's avatar Robert Knight

Adapt `yarn publish` command for Yarn v3

 - Change command to `yarn npm publish`. See https://yarnpkg.com/cli/npm/publish

 - Write token to `$HOME/.yarnrc.yml` instead of `$HOME/.npmrc` per
   https://yarnpkg.com/getting-started/migration#dont-use-npmrc-files
parent 6f3880ed
......@@ -112,8 +112,8 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.npm_token }}
run: |
echo '//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}' >> $HOME/.npmrc
yarn publish --no-interactive --tag latest --new-version=$NEW_VERSION
echo 'npmAuthToken: "${{ env.NPM_TOKEN }}"' >> $HOME/.yarnrc.yml
yarn npm publish
scripts/wait-for-npm-release.sh latest
- name: Deploy to S3
env:
......
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