Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade actions to node 20 #652

Merged
merged 5 commits into from
Jul 16, 2024
Merged

Conversation

SKalt
Copy link
Contributor

@SKalt SKalt commented Jun 29, 2024

Resolves #651 as much as possible: there are no newer versions of jetli/wasm-pack-action, and actions-rs/toolchain was archived after v1.0.6.

See the commit log for details about each actions' changelog.

SKalt added 4 commits June 29, 2024 19:08
Note that this upgrade's ONLY breaking change is
dropping Node.js 16 in favor of Node.js 20:
See https://github.com/actions/checkout/blob/v4/CHANGELOG.md#v400

Signed-off-by: Steven Kalt <[email protected]>
Note that the only breaking change in this update is
dropping node.js 16 in favor of node.js 20:
see https://github.com/actions/cache/blob/v4/RELEASES.md#400

Signed-off-by: Steven Kalt <[email protected]>
The only breaking change should be an upgrade to node.js 20:
see actions/setup-node@v3...v4.0.2

Signed-off-by: Steven Kalt <[email protected]>
This is a trickier upgrade, since v4 of github's artifact-handling
actions drop the ability to append to artifacts with the same name:
see https://github.com/actions/upload-artifact/tree/552bf3722c16e81001aea7db72d8cedf64eb5f68?tab=readme-ov-file#v4---whats-new

To work around the new naming restrictions, I invoke actions/download-artifact
for each target and chuck the files into the expected directories.

Signed-off-by: Steven Kalt <[email protected]>
@SKalt SKalt force-pushed the upgrade-actions-to-node-20 branch from 90c0f6e to 000ab70 Compare June 29, 2024 21:40
Copy link
Contributor

@bglw bglw left a comment

Choose a reason for hiding this comment

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

👋 Thanks for this!

One change, you can use the pattern and merge-multiple options for downloading multiple artifacts in one go: https://github.com/actions/download-artifact?tab=readme-ov-file#download-multiple-filtered-artifacts-to-the-same-directory

Saves us from having to enumerate the downloads 🙂

.github/workflows/release.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@bglw bglw left a comment

Choose a reason for hiding this comment

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

hit the wrong option — see comment above

@SKalt SKalt force-pushed the upgrade-actions-to-node-20 branch from 8b53f3a to 8520485 Compare July 16, 2024 22:23
@bglw bglw merged commit 4d48e9c into CloudCannon:main Jul 16, 2024
1 of 4 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.

chore: update github action versions to handle node.js 16 deprecations
3 participants