Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/scripts/verify-reactor-publish-workflow.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ test('reactor package workflow runs publish path only for reactor-v* tags', asyn
/id-token: write/,
'publish job must request OIDC id-token permission for npm provenance',
);
assert.match(
publishJob,
/npm install -g npm@11\.5\.1/,
'publish job must upgrade npm to a Trusted Publishing-capable CLI before provenance publish',
);
assert.doesNotMatch(
extractJob(source, 'ci'),
/npm publish/,
Expand Down Expand Up @@ -113,6 +118,11 @@ test('reactor package workflow publishes both smoked tarballs with provenance',
'publish job must rely on npm trusted publishing/OIDC without token fallback',
);
assertInOrder(publishJob, 'Publish Reactor package', 'Publish Cradle package');
assertInOrder(
publishJob,
'Upgrade npm for trusted publishing',
'Publish Reactor package',
);
assert.doesNotMatch(
publishJob,
/--dry-run/,
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-reactor-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ jobs:
with:
node-version: 22

- name: Upgrade npm for trusted publishing
run: npm install -g npm@11.5.1

- name: Download Reactor tarball
uses: actions/download-artifact@v4
with:
Expand Down
Loading