Skip to content

Disable Renovate uses-with for Node.js#3376

Merged
HiDeoo merged 2 commits intowithastro:mainfrom
HiDeoo:hd-renovate-disable-uses-with-node
Aug 12, 2025
Merged

Disable Renovate uses-with for Node.js#3376
HiDeoo merged 2 commits intowithastro:mainfrom
HiDeoo:hd-renovate-disable-uses-with-node

Conversation

@HiDeoo
Copy link
Copy Markdown
Member

@HiDeoo HiDeoo commented Aug 12, 2025

Description

This PR is a follow-up to the uses-with updates in #3374 and #3375 and aims to disable Node.js version updates for actions/setup-node in Renovate.

As I mentioned in this comment, this is done for a few reasons:

  • We want to control the Node.js version used in some workflows
  • We probably don't want to deal with such PRs for every Node.js versions

As usual, I don't think there is a way to test this change without merging it, and not explicitely documented (or I missed it), but hopefully after merging this PR and waiting a bit, Renovate should close the 2 existing PRs I mentioned and should create 2 new ones only containing an update for actions/checkout (which was bundled in the previous PRs with the Node.js version update).

If this works as expected, I'll port this change to Astro Docs.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Aug 12, 2025

⚠️ No Changeset found

Latest commit: c5f14d4

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@netlify
Copy link
Copy Markdown

netlify bot commented Aug 12, 2025

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit c5f14d4
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/689b54651ede8f00081aed24
😎 Deploy Preview https://deploy-preview-3376--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 92 (🔴 down 8 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

I guess the thinking behind the change is to make the implicit Node versioning behaviour more explicit? i.e. currently if we specify 18, the action will get the latest 18 release, changing across runs. After the Renovate PR, the Node version is pinned to a specific patch and will only change when we merge a Renovate PR.

In principle, I think that’s good, although I agree that a) sometimes we are intentionally using old versions and b) updating for every Node patch is a bit annoying (I can already confirm this from experience with the astro.build repo).

So might be good to accept the PR pinning Node to a specific patch and then disable subsequent updates?

@HiDeoo
Copy link
Copy Markdown
Member Author

HiDeoo commented Aug 12, 2025

So might be good to accept the PR pinning Node to a specific patch and then disable subsequent updates?

That's also a possibility. That would mean (if everything goes well ^^)

  1. Merging chore(deps): update github-actions #3374
  2. Merging this PR
  3. Renovate closes chore(deps): update actions/checkout action to v5 #3375
  4. Renovate re-opens a PR for updating actions/checkout only to the next major

@delucis
Copy link
Copy Markdown
Member

delucis commented Aug 12, 2025

Sounds like a good experiment 😁

@delucis delucis mentioned this pull request Aug 12, 2025
1 task
Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Left an observation, but happy to merge this and see what happens 👍

(I merged #3374 already, so you can merge this whenever you like.)

Comment on lines +30 to +35
{
description: 'Disable Node.js version updates with actions/setup-node',
matchDepNames: ['node'],
matchDepTypes: ['uses-with'],
enabled: false,
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Noting that our existing github-actions group uses matchManagers: ['github-actions'] to target these specifically, but not sure that’s relevant here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The reason I did not add it is to potentially catch similar rules that may in the future have a similar behavior for Node.js versions, e,.g. a similar rule was added for pnpm/action-setup but in this case the data source is npm.

@HiDeoo HiDeoo merged commit 88769dd into withastro:main Aug 12, 2025
14 checks passed
@HiDeoo HiDeoo deleted the hd-renovate-disable-uses-with-node branch August 12, 2025 14:56
HiDeoo added a commit to hippotastic/starlight that referenced this pull request Aug 14, 2025
* upstream/main: (139 commits)
  chore(deps): update actions/checkout action to v5 (withastro#3375)
  Disable Renovate `uses-with` for Node.js (withastro#3376)
  i18n(fr): update `resources/plugins` (withastro#3378)
  chore(deps): update github-actions (withastro#3374)
  i18n(ko-KR): update `plugins.mdx` (withastro#3377)
  i18n(de): update `plugins.mdx` (withastro#3367)
  Add `starlight-github-alerts` plugin to plugin showcase (withastro#3369)
  i18n(fr): update `resources/plugins.mdx` (withastro#3372)
  i18n(fr): update `resources/community-content.mdx` (withastro#3371)
  [ci] format
  i18n(fr): update `environmental-impact.md` (withastro#3370)
  [ci] format
  i18n(de): update `community-content.mdx` (withastro#3366)
  [ci] format
  i18n(de): update `environmental-impact.md` (withastro#3365)
  [ci] format
  i18n(ko-KR): update `environmental-impact.md` (withastro#3368)
  Update carbon calculator stats for v4 model (withastro#3364)
  i18n(ko-KR): update `community-content.mdx` (withastro#3362)
  i18n(ko-KR): update `plugins.mdx` (withastro#3361)
  ...
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.

2 participants