mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
chore: Fix publish CI action
This commit is contained in:
parent
b4799f7e88
commit
dfd5e8180d
6
.github/workflows/publish-core.yml
vendored
6
.github/workflows/publish-core.yml
vendored
@ -483,7 +483,7 @@ jobs:
|
||||
run: |
|
||||
npm config set provenance true
|
||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||
npm publish --workspaces --access public --tag $NPM_TAG
|
||||
yarn npm publish --workspaces --access public --tag $NPM_TAG
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
@ -544,7 +544,7 @@ jobs:
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
run: |
|
||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||
(cd bindings/binding_core_wasm/pkg && npm publish --access public --tag $NPM_TAG)
|
||||
(cd bindings/binding_core_wasm/pkg && yarn npm publish --access public --tag $NPM_TAG)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
@ -596,7 +596,7 @@ jobs:
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
run: |
|
||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||
(cd bindings/binding_core_wasm/pkg && npm publish --access public --tag $NPM_TAG)
|
||||
(cd bindings/binding_core_wasm/pkg && yarn npm publish --access public --tag $NPM_TAG)
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user