Closed mike-day closed 2 months ago
Latest commit: 91bf3497203b7078aae584589821c084a2ae244e
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
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.