Skip to content

Commit ba5ad02

Browse files
committed
ci: pin publish workflow to minimum supported Node version
The publish workflow should use Node 22 (the minimum supported version per engines.node >=22.0.0) to ensure maximum compatibility for all users. The CI matrix already validates both Node 22 and 24. Also adds a Renovate package rule to prevent automated bumps of the Node version in the publish workflow. Refs #106
1 parent 9fde50b commit ba5ad02

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Setup Node.js
4848
uses: actions/setup-node@v6
4949
with:
50-
node-version: "22"
50+
node-version: "22" # Pin to minimum supported version for publishing
5151
registry-url: "https://registry.npmjs.org"
5252

5353
- name: Clean install

renovate.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
"description": "Group GitHub Actions updates",
2727
"matchManagers": ["github-actions"],
2828
"groupName": "github actions"
29+
},
30+
{
31+
"description": "Pin publish workflow to minimum supported Node version",
32+
"matchManagers": ["github-actions"],
33+
"matchPackageNames": ["node"],
34+
"matchFileNames": [".github/workflows/publish.yml"],
35+
"enabled": false
2936
}
3037
]
3138
}

0 commit comments

Comments
 (0)