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

ci(GHA): drop actions/setup-node #476

Merged
merged 6 commits into from
Mar 10, 2022
Merged

ci(GHA): drop actions/setup-node #476

merged 6 commits into from
Mar 10, 2022

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Mar 10, 2022

🚥 Fix #475

🧰 Changes

The only reason we have the setup-node step in the action is because I was under the impression that ubuntu-latest was running Node v14/npm@6 and I didn't want that to mess with our package-lock.json, which is lockfileVersion@2.

Turns out I was completely wrong and ubuntu-latest has been on Node 16 for several months now: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md

I realized this was because my local act runner image was out-of-date, so this PR also updates our contributing docs to call that out.

🧬 QA & Testing

Do tests pass and do the docs look good?

As an extra sanity check, I confirmed that ubuntu-latest is running Node v16 in 5f675fb. You can see the results here: https://github.com/readmeio/rdme/runs/5498116121?check_suite_focus=true#step:4:8

Turns out my `ghcr.io/catthehacker/ubuntu` image was out-of-date, so I was using a different version of Node locally than what was actually running on GitHub 🤦

This updates our contributing guidelines to call this out (mostly for myself)
@kanadgupta kanadgupta added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 10, 2022
@kanadgupta kanadgupta changed the title Drop setup node ci(GHA): drop actions/setup-node Mar 10, 2022
@kanadgupta kanadgupta requested a review from erunion March 10, 2022 16:18
@kanadgupta kanadgupta added this to the v7 milestone Mar 10, 2022
CONTRIBUTING.md Outdated Show resolved Hide resolved
uses: actions/setup-node@v3
with:
node-version: 16
# When we add debug support, we should make this a conditional step, see RM-3545

Choose a reason for hiding this comment

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

This comment may still be useful I guess

Co-authored-by: Alex Tymchuk <[email protected]>
@kanadgupta kanadgupta merged commit 14895a1 into main Mar 10, 2022
@kanadgupta kanadgupta deleted the drop-setup-node branch March 10, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not require to run actions/setup-node
3 participants