Skip to content

chore: add setup-node to pack-upload and release-homebrew workflows - #3879

Merged
michaelmalave merged 1 commit into
v12.0.0from
worker/gus-a07EE00002ekf5CYAQ-2026-08-18-task-1
Aug 19, 2026
Merged

chore: add setup-node to pack-upload and release-homebrew workflows#3879
michaelmalave merged 1 commit into
v12.0.0from
worker/gus-a07EE00002ekf5CYAQ-2026-08-18-task-1

Conversation

@michaelmalave

@michaelmalave michaelmalave commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Pin an explicit Node.js runtime in the release/pack workflows that run npm ci without a setup-node step of their own, so those jobs build against Node 24 instead of the ambient GitHub-runner Node. These reusable/dispatched workflows do not inherit a Node context from their callers, so each needs its own setup-node.

  • Add actions/setup-node@v6 (node-version: 24.x, cache: npm) to the three pack jobs in pack-upload.yml (each runs npm ci).
  • Add the same setup-node@v6 step to release-homebrew.yml before its install.
  • Pin @v6 to match the version every other setup-node step on v12.0.0 already uses (no new action-version drift).

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

Notes:
Workflow YAML only — not exercised by the unit suite; CI on this branch is the real verification (the pack and homebrew jobs should now provision Node 24.x before npm ci). Before opening, confirmed the diff is scoped and consistent with the release line:

# Every setup-node on v12.0.0 pins @v6 (13 occurrences, zero @v7) — this PR matches convention
git grep -h 'setup-node@' v12.0.0 -- '.github/workflows/*.yml' | sort | uniq -c

# Confirm the two edited workflows are the ones running `npm ci` with no prior setup-node
git grep -n 'npm ci' v12.0.0 -- '.github/workflows/pack-upload.yml' '.github/workflows/release-homebrew.yml'

Steps:

  1. Passing CI suffices — the pack-upload and release-homebrew jobs run with Node 24.x provisioned before npm ci.

Screenshots (if applicable)

N/A

Related Issues

GUS work item: W-23445979 — [CLI] v12: Update GitHub Actions workflows to Node 24

W-23445979 (v12 Node 24 workflow update) is mostly landed on v12.0.0 via
PR #3877 (CI matrix [22.x, 24.x], Node 20 dropped, existing setup-node
steps pinned to 24.x). The remaining gap: pack-upload.yml (pack_deb,
pack_tarballs, upload-deb-and-tarballs jobs) and release-homebrew.yml
run `npm ci` with no setup-node step of their own, so they silently
inherit the ambient GitHub runner Node instead of the repo's pinned
24.x baseline.

Add an explicit actions/setup-node@v6 step (node-version: 24.x,
cache: npm) immediately after checkout in each of those jobs, matching
the exact action ref and step shape already used everywhere else in
this repo's workflows on v12.0.0 (ci.yml, release.yml,
create-cli-release.yml, promote.yml, tag-create-github-release.yml,
devcenter-doc-update.yml).

cache-invalidation.yml and tps-record-release.yml are left untouched
(Node-independent). No cache key references a node version, so no
cache-key change is needed.
@michaelmalave
michaelmalave requested a review from a team as a code owner August 19, 2026 00:20
@michaelmalave
michaelmalave deployed to AcceptanceTests August 19, 2026 00:20 — with GitHub Actions Active
@michaelmalave
michaelmalave deployed to AcceptanceTests August 19, 2026 00:20 — with GitHub Actions Active
@michaelmalave
michaelmalave deployed to AcceptanceTests August 19, 2026 00:20 — with GitHub Actions Active
@michaelmalave
michaelmalave deployed to AcceptanceTests August 19, 2026 00:20 — with GitHub Actions Active

@tlowrimore-heroku tlowrimore-heroku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@michaelmalave
michaelmalave merged commit d3150a2 into v12.0.0 Aug 19, 2026
20 checks passed
@michaelmalave
michaelmalave deleted the worker/gus-a07EE00002ekf5CYAQ-2026-08-18-task-1 branch August 19, 2026 19:15
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.

2 participants