From 82d82356d575c05d4eb3e54e5984d0129c204edf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 29 May 2024 00:35:29 +0900 Subject: [PATCH] chore: Use static `.yarnrc` --- .github/workflows/publish-core.yml | 3 --- .yarnrc.yml | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-core.yml b/.github/workflows/publish-core.yml index af3834e3a28..c1d6374be18 100644 --- a/.github/workflows/publish-core.yml +++ b/.github/workflows/publish-core.yml @@ -482,7 +482,6 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/v') }} run: | npm config set provenance true - 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 +542,6 @@ jobs: - name: Publish if: ${{ startsWith(github.ref, 'refs/tags/v') }} run: | - 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 +593,6 @@ jobs: - name: Publish if: ${{ startsWith(github.ref, 'refs/tags/v') }} run: | - 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 }} diff --git a/.yarnrc.yml b/.yarnrc.yml index 91b1101f520..b30606d11dd 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,5 +1,6 @@ compressionLevel: mixed - enableGlobalCache: false - nodeLinker: node-modules + +npmAlwaysAuth: true +npmAuthToken: ${NPM_TOKEN-''}