[CICD-606] Update actions/checkout@v4, node v20 #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA Ticket
CICD-606
What Are We Doing Here
GHA currently uses an older version of both actions/checkout and Node. This PR updates to the newest versions we can use for both (considering transitive dependencies).
To install Node v20 using nvm, follow these steps:
nvm install v20
nvm use v20
npm ci
Testing
Effectively testing compatibility for these dependency updates locally was tricky, but I was able to confirm several workflows ran
checkout@v4
without errors.Test e2e Deploy to WP Engine
Lint GHA Files
The image used with
act
does not contain some packages available by default with GitHub, so bothshellcheck
andyamllint
were installed as part of the workflow locally. The YAML for the job looked like this:Version and Release
I couldn't figure out a great way to test this workflow locally.
changesets/action
expects a valid GitHub token to run, but supplying a real token could actually create a PR or release while testing, which is not ideal 😄At one point, I did try simply commenting out the step to create a PR. checkout@v4 and setup-node@v2 both seemed to work as expected and the current version was output by the job.