Skip to content

Commit 80082e1

Browse files
committed
chore: update Node.js version requirement and adjust workflows to use package.json for node version
1 parent 297a6b3 commit 80082e1

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/e2e_tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
- uses: actions/checkout@v4
2222

2323
- uses: actions/setup-node@v4
24+
id: setup_node
2425
with:
25-
node-version: 18
26+
node-version-file: package.json
27+
cache: npm
2628

2729
# Cache Playwright browsers
2830
- name: Cache Playwright browsers
@@ -69,7 +71,7 @@ jobs:
6971
job-summary: true
7072
icon-style: "emojis"
7173
custom-info: |
72-
**Test Environment:** Ubuntu Latest, Node.js 18
74+
**Test Environment:** Ubuntu Latest, Node.js ${{ steps.setup_node.outputs.node-version }}
7375
**Browsers:** Chromium, Firefox
7476
7577
📊 [View Detailed HTML Report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) (download artifacts)

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version-file: .node-version
22+
node-version-file: package.json
2323
cache: npm
2424

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,8 @@
6464
"prettier": "3.3.3",
6565
"rimraf": "^6.0.1",
6666
"typescript": "^5.4.2"
67+
},
68+
"engines": {
69+
"node": ">=22.0.0"
6770
}
6871
}

0 commit comments

Comments
 (0)