mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 00:32:15 +03:00
chore(ci): Use $NPM_TAG
env var
- Closes https://github.com/swc-project/swc/issues/9269
This commit is contained in:
parent
9c176632b1
commit
1c652f913e
2
.github/workflows/publish-npm-package.yml
vendored
2
.github/workflows/publish-npm-package.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user