chore(ci): Use $NPM_TAG env var

- Closes https://github.com/swc-project/swc/issues/9269
This commit is contained in:
강동윤 (Donny) 2024-07-18 08:30:51 +09:00
parent 9c176632b1
commit 1c652f913e

View File

@ -562,7 +562,7 @@ jobs:
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "npmAlwaysAuth:true\n npmAuthToken: '$NPM_TOKEN'\n" >> ~/.yarnrc
(cd packages/core && yarn workspaces foreach -Rt npm publish --tolerate-republish)
(cd packages/core && yarn workspaces foreach -Rt npm publish --tolerate-republish --tag $NPM_TAG)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}