From f8cf710563a4361546bc0b65a3d3bd9da3d2720c Mon Sep 17 00:00:00 2001 From: Victor Adossi Date: Fri, 4 Jul 2025 07:53:37 +0900 Subject: [PATCH] fix(ci): add npmrc This commit adds the npmrc which utilizes the NPM token provided in CI secrets shortly before performing the NPM publish Signed-off-by: Victor Adossi --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1c86a98..889580c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,7 +107,7 @@ jobs: attestations: write strategy: matrix: - rust-version: + rust-version: - 1.80.0 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -190,9 +190,12 @@ jobs: env: PREPACK_SKIP_BUILD: "true" steps: - # NOTE: we need to checkout to pull npmrc - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Add npmrc + run: | + echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: path: artifacts