Skip to content

Commit 93bb479

Browse files
authored
Merge pull request #142 from stiwicourage/develop
Update Node.js version requirements for release automation
2 parents 8270e04 + b859b7b commit 93bb479

5 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- name: Setup Node
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 20
31+
# semantic-release@25 requires Node.js 22.14.0 or newer.
32+
node-version: 22.14.0
3233
cache: npm
3334

3435
- name: Install npm dependencies

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Repository development expects:
5656
- `Microsoft.PowerShell.PlatyPS`
5757

5858
Node.js is only required if you are working on the current semantic-release-based publish pipeline.
59+
Use Node.js 22.14.0 or newer for that release automation because the current `semantic-release` toolchain requires it.
5960

6061
### Build the module locally
6162

@@ -572,6 +573,9 @@ The CI helper flow also produces JUnit and Cobertura artifacts for external syst
572573

573574
The current publish pipeline is still semantic-release based.
574575

576+
`.github/workflows/Publish.yml` now provisions Node.js 22.14.0 before `npx semantic-release` runs, so the release step
577+
stays aligned with the upstream runtime requirement after build and test succeed.
578+
575579
Key pieces:
576580

577581
- `.github/workflows/Publish.yml`

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "novamoduletools-release",
33
"private": true,
44
"description": "Release automation for NovaModuleTools",
5+
"engines": {
6+
"node": ">=22.14.0"
7+
},
58
"scripts": {
69
"release": "semantic-release"
710
},

project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ProjectName": "NovaModuleTools",
33
"Description": "NovaModuleTools is an enterprise-focused evolution of ModuleTools, designed for large-scale PowerShell projects with a strong emphasis on structure, maintainability, and automated CI/CD pipelines.",
4-
"Version": "2.0.0-beta03",
4+
"Version": "2.0.0-beta04",
55
"Preamble": [
66
"Set-StrictMode -Version Latest",
77
"$ErrorActionPreference = 'Stop'"

0 commit comments

Comments
 (0)