Skip to content

Commit 6d67f4c

Browse files
committed
ci: use npm 11 for trusted publishing
1 parent a5f136e commit 6d67f4c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
registry-url: https://registry.npmjs.org
2626

2727
- name: Install
28-
run: npm ci
28+
run: |
29+
npm install -g npm@^11.10.0
30+
npm ci
2931
3032
- name: Verify tag matches package version
3133
run: |

tests/cli.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ describe("codex-flow cli", () => {
7676

7777
assert.match(workflow, /on:\s*\n\s+push:\s*\n\s+tags:\s*\n\s+- ['"]v\*['"]/);
7878
assert.match(workflow, /id-token:\s*write/);
79+
assert.match(workflow, /npm install -g npm@\^11\.10\.0/);
7980
assert.match(workflow, /npm publish --access public/);
8081
assert.doesNotMatch(workflow, /NODE_AUTH_TOKEN|NPM_TOKEN|_authToken/);
8182
});

0 commit comments

Comments
 (0)