Skip to content

Commit cedcbd5

Browse files
authored
Fix npm trusted publishing authentication (#22)
1 parent b4add54 commit cedcbd5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@ jobs:
6969
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7070
with:
7171
ref: ${{ needs.identity.outputs.commit }}
72-
- name: Setup Node and npm registry
72+
- name: Setup Node
7373
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
7474
with:
7575
node-version: ${{ env.NODE_VERSION }}
76-
registry-url: https://registry.npmjs.org
7776
- name: Install pinned npm
7877
run: npm install --global "npm@$NPM_VERSION"
7978
- name: Setup Bun

scripts/workflow-contract.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ describe("CI and release workflow contracts", () => {
160160
expect(setupStep(publish, "actions/setup-node")?.with?.["node-version"]).toBe(
161161
WORKFLOW_NODE_VERSION,
162162
);
163+
expect(setupStep(publish, "actions/setup-node")?.with?.["registry-url"]).toBeUndefined();
163164
expect(setupStep(publish, "oven-sh/setup-bun")?.with?.["bun-version"]).toBe(
164165
WORKFLOW_BUN_VERSION,
165166
);

0 commit comments

Comments
 (0)