chore: Use token while publishing

This commit is contained in:
강동윤 (Donny) 2024-05-29 00:23:14 +09:00
parent bdaef18ca8
commit 4c78c75700

View File

@ -482,7 +482,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "npmAlwaysAuth:true\n npmAuthToken: '$NPM_TOKEN'\n" >> ~/.yarnrc
yarn npm publish --access public --tag $NPM_TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -543,7 +543,7 @@ jobs:
- name: Publish
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "npmAlwaysAuth:true\n npmAuthToken: '$NPM_TOKEN'\n" >> ~/.yarnrc
(cd bindings/binding_core_wasm/pkg && yarn npm publish --access public --tag $NPM_TAG)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -595,7 +595,7 @@ jobs:
- name: Publish
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
echo "npmAlwaysAuth:true\n npmAuthToken: '$NPM_TOKEN'\n" >> ~/.yarnrc
(cd bindings/binding_core_wasm/pkg && yarn npm publish --access public --tag $NPM_TAG)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}