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-''}