Skip to content

Commit 506524f

Browse files
committed
ci: use .nvmrc for node version, add engines >=24
1 parent f74fb0b commit 506524f

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v6
2424
- uses: actions/setup-node@v6
2525
with:
26-
node-version: 24
26+
node-version-file: '.nvmrc'
2727
cache: npm
2828
- run: npm ci
2929
- run: npm run build
@@ -43,7 +43,7 @@ jobs:
4343
- uses: actions/checkout@v6
4444
- uses: actions/setup-node@v6
4545
with:
46-
node-version: 24
46+
node-version-file: '.nvmrc'
4747
- uses: actions/cache/restore@v4
4848
with:
4949
path: |
@@ -61,7 +61,7 @@ jobs:
6161
- uses: actions/checkout@v6
6262
- uses: actions/setup-node@v6
6363
with:
64-
node-version: 24
64+
node-version-file: '.nvmrc'
6565
- uses: actions/cache/restore@v4
6666
with:
6767
path: |
@@ -83,7 +83,7 @@ jobs:
8383
- uses: actions/checkout@v6
8484
- uses: actions/setup-node@v6
8585
with:
86-
node-version: 24
86+
node-version-file: '.nvmrc'
8787
- uses: actions/cache/restore@v4
8888
with:
8989
path: |
@@ -109,7 +109,7 @@ jobs:
109109
- uses: actions/checkout@v6
110110
- uses: actions/setup-node@v6
111111
with:
112-
node-version: 24
112+
node-version-file: '.nvmrc'
113113
- uses: actions/cache/restore@v4
114114
with:
115115
path: |

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v6
1919
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 24
21+
node-version-file: '.nvmrc'
2222
cache: npm
2323
- run: npm ci
2424
- run: npm run docs:build

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v6
2222
- uses: actions/setup-node@v6
2323
with:
24-
node-version: 24
24+
node-version-file: '.nvmrc'
2525
cache: npm
2626
- run: npm ci
2727
- run: npm run build

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "storybook-addon-performance-panel-repo",
33
"private": true,
44
"type": "module",
5+
"engines": {
6+
"node": ">=24"
7+
},
58
"workspaces": [
69
"packages/*"
710
],

0 commit comments

Comments
 (0)