Skip to content

Bump the artifact actions off Node.js 20 - #13

Merged
mconflitti-pbc merged 1 commit into
mainfrom
fix-nodejs-warning-ci
Aug 5, 2026
Merged

Bump the artifact actions off Node.js 20#13
mconflitti-pbc merged 1 commit into
mainfrom
fix-nodejs-warning-ci

Conversation

@mconflitti-pbc

Copy link
Copy Markdown
Contributor

The release workflow's publish and github-release jobs print a deprecation warning:

Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/upload-artifact@v4

This moves both artifact actions to the current majors, which declare node24 themselves:

  • actions/upload-artifact@v4 -> @v7
  • actions/download-artifact@v4 -> @v8

Notes

  • Node 24 first became the default in upload v6 / download v7. I went to the latest majors because they pair up: upload v7 adds unzipped direct uploads, and download v8 is the version that handles them.
  • Download v8 also changes an artifact digest mismatch from a warning to an error. That is the behavior we want here -- a corrupt dist/ must fail the job instead of becoming a GitHub release.
  • Both majors need Actions Runner 2.327.1 or later. Both jobs use ubuntu-latest, so this is met.
  • Our usage passes only name and path, so no other change is needed.

Testing

The release workflow runs on tag push only, so this cannot run on the PR. Verify on the next release that the warning is gone and that dist/ still reaches both PyPI and the GitHub release.

GitHub Actions runners now force actions/upload-artifact@v4 and
actions/download-artifact@v4 onto Node.js 24 and print a deprecation
warning. Move to the current majors, which declare node24 themselves.

upload v7 and download v8 are a pair: v7 adds unzipped direct uploads,
and v8 is the version that handles them. v8 also turns an artifact digest
mismatch from a warning into an error, which is the behavior we want here
-- a corrupt dist/ must fail the job, not become a GitHub release.
@mconflitti-pbc
mconflitti-pbc merged commit cac5854 into main Aug 5, 2026
9 checks passed
@mconflitti-pbc
mconflitti-pbc deleted the fix-nodejs-warning-ci branch August 5, 2026 15:48
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