Skip to content

Commit b469c25

Browse files
authored
Merge pull request #160 from TrueNine/dev
ci: isolate npm auth from repo package metadata
2 parents f1f84b9 + f116d97 commit b469c25

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,13 @@ jobs:
264264
exit 1
265265
fi
266266
267+
tmp_dir="$(mktemp -d)"
268+
trap 'rm -rf "$tmp_dir"' EXIT
269+
270+
pushd "$tmp_dir" >/dev/null
267271
npm config set //registry.npmjs.org/:_authToken "${NODE_AUTH_TOKEN}"
268272
npm whoami --registry "${NPM_REGISTRY_URL}"
273+
popd >/dev/null
269274
270275
- name: Download raw CLI binaries
271276
uses: actions/download-artifact@v8
@@ -335,8 +340,13 @@ jobs:
335340
exit 1
336341
fi
337342
343+
tmp_dir="$(mktemp -d)"
344+
trap 'rm -rf "$tmp_dir"' EXIT
345+
346+
pushd "$tmp_dir" >/dev/null
338347
npm config set //registry.npmjs.org/:_authToken "${NODE_AUTH_TOKEN}"
339348
npm whoami --registry "${NPM_REGISTRY_URL}"
349+
popd >/dev/null
340350
341351
- name: Download raw MCP binaries
342352
uses: actions/download-artifact@v8

0 commit comments

Comments
 (0)