chore: update Node.js version requirement and adjust workflows to use package.json for node version

This commit is contained in:
Baruch Odem 2025-06-29 07:46:25 +03:00
commit 80082e1272
3 changed files with 9 additions and 4 deletions

View file

@ -21,8 +21,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
id: setup_node
with:
node-version: 18
node-version-file: package.json
cache: npm
# Cache Playwright browsers
- name: Cache Playwright browsers
@ -69,7 +71,7 @@ jobs:
job-summary: true
icon-style: "emojis"
custom-info: |
**Test Environment:** Ubuntu Latest, Node.js 18
**Test Environment:** Ubuntu Latest, Node.js ${{ steps.setup_node.outputs.node-version }}
**Browsers:** Chromium, Firefox
📊 [View Detailed HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) (download artifacts)

View file

@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
node-version-file: package.json
cache: npm
# Working around https://github.com/npm/cli/issues/4828
@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
node-version-file: package.json
cache: npm
registry-url: "https://registry.npmjs.org"

View file

@ -64,5 +64,8 @@
"prettier": "3.3.3",
"rimraf": "^6.0.1",
"typescript": "^5.4.2"
},
"engines": {
"node": ">=22.0.0"
}
}