Skip to content

Switch publish workflow to Node 24 (dry run 2: 8.0.1-alpha.1)#61

Merged
mckalexee merged 2 commits into
mainfrom
fix-publish-workflow
Apr 20, 2026
Merged

Switch publish workflow to Node 24 (dry run 2: 8.0.1-alpha.1)#61
mckalexee merged 2 commits into
mainfrom
fix-publish-workflow

Conversation

@mckalexee

@mckalexee mckalexee commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The first dry run (v8.0.1-alpha.0) failed on npm install -g npm@latest — the self-upgrade leaves a half-replaced install on the GitHub runner (Cannot find module 'promise-retry'). An earlier commit on this branch worked around it with a prefix install; this PR replaces that with the cleaner fix: run on Node 24, whose bundled npm (11.x) already supports OIDC Trusted Publishing.

Commits will squash-merge as one.

Changes

  • publish.yml: node-version: '24', upgrade/prefix steps removed.
  • publish.yml: adds a npm --version step so the bundled version is visible in the run log (if it ever dips below 11.5.1, the publish step will fail with a clear OIDC error and we'll know to pin).
  • package.json: bumped to 8.0.1-alpha.1 so a fresh tag exercises the updated workflow.

Test plan

  • Merge (squash).
  • Tag and push: git checkout main && git pull && git tag v8.0.1-alpha.1 && git push origin v8.0.1-alpha.1.
  • Watch Publish workflow. Confirm npm view @faceteer/cdk dist-tags shows alpha: 8.0.1-alpha.1 and latest: 8.0.0 unchanged.
  • Confirm the provenance badge appears on npmjs.com.

The first dry-run (v8.0.1-alpha.0) failed because `npm install -g
npm@latest` leaves a half-replaced install on GitHub runners, breaking
the subsequent `npm install` with "Cannot find module 'promise-retry'".

Install the newer npm into an isolated prefix and prepend that prefix
to PATH instead, so the running npm is never replaced mid-flight.

Version bumped to 8.0.1-alpha.1 to re-run the dry run on a fresh tag.
@codecov

codecov Bot commented Apr 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.88%. Comparing base (8760272) to head (2f56a3e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #61   +/-   ##
=======================================
  Coverage   82.88%   82.88%           
=======================================
  Files          24       24           
  Lines         625      625           
  Branches      148      148           
=======================================
  Hits          518      518           
  Misses        105      105           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

Test Results

 1 files  ±0   9 suites  ±0   11s ⏱️ -2s
33 tests ±0  33 ✅ ±0  0 💤 ±0  0 ❌ ±0 
34 runs  ±0  34 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 2319a3b. ± Comparison against base commit 8760272.

@github-actions

github-actions Bot commented Apr 20, 2026

Copy link
Copy Markdown

Test Results

 1 files  ±0   9 suites  ±0   10s ⏱️ -3s
33 tests ±0  33 ✅ ±0  0 💤 ±0  0 ❌ ±0 
34 runs  ±0  34 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 2f56a3e. ± Comparison against base commit 8760272.

♻️ This comment has been updated with latest results.

Node 24 bundles npm 11.x, which in current releases is >= 11.5.1 —
enough for OIDC Trusted Publishing. Drops the prefix-install workaround
that was in place to avoid `npm install -g npm@latest` self-replacement
breakage; the simpler path is just to run on a Node whose bundled npm
already supports OIDC.

`Show npm version` stays so the run log makes the actual version visible.
@mckalexee mckalexee changed the title Fix publish workflow npm upgrade (dry run 2: 8.0.1-alpha.1) Switch publish workflow to Node 24 (dry run 2: 8.0.1-alpha.1) Apr 20, 2026
@mckalexee mckalexee merged commit 6365ae1 into main Apr 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant