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: ...@@ -112,8 +112,8 @@ jobs:
env: env:
NPM_TOKEN: ${{ secrets.npm_token }} NPM_TOKEN: ${{ secrets.npm_token }}
run: | run: |
echo '//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}' >> $HOME/.npmrc echo 'npmAuthToken: "${{ env.NPM_TOKEN }}"' >> $HOME/.yarnrc.yml
yarn publish --no-interactive --tag latest --new-version=$NEW_VERSION yarn npm publish
scripts/wait-for-npm-release.sh latest scripts/wait-for-npm-release.sh latest
- name: Deploy to S3 - name: Deploy to S3
env: 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