Skip to content

Commit 4d4651f

Browse files
authored
Merge pull request #24 from github/fix-browser-tests
Update actions
2 parents c57d15d + 506524f commit 4d4651f

6 files changed

Lines changed: 41 additions & 65 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: 22
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: 22
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: 22
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: 22
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: 22
112+
node-version-file: '.nvmrc'
113113
- uses: actions/cache/restore@v4
114114
with:
115115
path: |

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v6
19-
- uses: actions/setup-node@v4
19+
- uses: actions/setup-node@v6
2020
with:
21-
node-version: 22
21+
node-version-file: '.nvmrc'
2222
cache: npm
2323
- run: npm ci
2424
- run: npm run docs:build

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ jobs:
2121
- uses: actions/checkout@v6
2222
- uses: actions/setup-node@v6
2323
with:
24-
node-version: 22
24+
node-version-file: '.nvmrc'
2525
cache: npm
26-
- name: Update npm
27-
run: npm update -g npm
2826
- run: npm ci
2927
- run: npm run build
3028
- name: Create release PR or publish
@@ -39,12 +37,14 @@ jobs:
3937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4038
NPM_TOKEN: ''
4139
NPM_CONFIG_PROVENANCE: true
42-
- name: Report CI status on changeset PR
40+
- name: Configure changeset PR
4341
if: steps.changesets.outputs.pullRequestNumber
4442
env:
4543
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4644
run: |
47-
sha=$(gh pr view ${{ steps.changesets.outputs.pullRequestNumber }} --json headRefOid -q .headRefOid)
45+
PR=${{ steps.changesets.outputs.pullRequestNumber }}
46+
gh pr edit "$PR" --add-label "skip changeset"
47+
sha=$(gh pr view "$PR" --json headRefOid -q .headRefOid)
4848
gh api repos/${{ github.repository }}/statuses/$sha \
4949
-f state=success \
5050
-f context=CI \

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

package-lock.json

Lines changed: 25 additions & 52 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": "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)