Skip to content

Commit 0aee1ae

Browse files
fix(ci): add npmrc (#238)
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 <[email protected]>
1 parent 83b7763 commit 0aee1ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
attestations: write
108108
strategy:
109109
matrix:
110-
rust-version:
110+
rust-version:
111111
- 1.80.0
112112
steps:
113113
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -190,9 +190,12 @@ jobs:
190190
env:
191191
PREPACK_SKIP_BUILD: "true"
192192
steps:
193-
# NOTE: we need to checkout to pull npmrc
194193
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
195194

195+
- name: Add npmrc
196+
run: |
197+
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
198+
196199
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
197200
with:
198201
path: artifacts

0 commit comments

Comments
 (0)