chore: Use .npmrc

This commit is contained in:
강동윤 (Donny) 2024-05-30 11:15:32 +09:00
parent 48fd8ecb46
commit da433862d4

View File

@ -482,6 +482,8 @@ 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
(cd packages/core && yarn workspaces foreach -Rt npm publish --tolerate-republish)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}