Skip to content

Commit a7fac2b

Browse files
committed
fix workflows
1 parent 2e8a896 commit a7fac2b

File tree

10 files changed

+555
-1594
lines changed

10 files changed

+555
-1594
lines changed

.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ jobs:
77
runs-on: ubuntu-latest
88
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
99
steps:
10-
- uses: actions/checkout@v2
11-
10+
- uses: actions/checkout@v3
11+
12+
- name: Enable Corepack
13+
run: corepack enable
14+
1215
- name: Prepare repository
1316
run: git fetch --unshallow --tags
1417

15-
- name: Use Node.js 18.x
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 18.x
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
1920

2021
- name: Install dependencies
2122
uses: bahmutov/npm-install@v1

.github/workflows/test.yml

+7-11
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,26 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
node-version: [18.x]
118
steps:
129
- uses: actions/checkout@v4
10+
11+
- name: Enable Corepack
12+
run: corepack enable
1313

1414
- name: Setup Node.js
1515
uses: actions/setup-node@v4
1616

17-
- name: Install dependencies
18-
uses: bahmutov/npm-install@v1
19-
20-
- name: Install Playwright Browsers
21-
run: npx playwright install --with-deps
22-
2317
- name: Run tests in webpack example
2418
run: |
25-
yarn build
19+
yarn install
20+
npx playwright install --with-deps
2621
yarn test-storybook:ci-coverage
2722
working-directory: examples/webpack5
2823

2924
- name: Run tests in vite example
3025
run: |
31-
yarn build
26+
yarn install
27+
npx playwright install --with-deps
3228
yarn test-storybook:ci-coverage
3329
working-directory: examples/vite
3430

.yarn/install-state.gz

-257 Bytes
Binary file not shown.

examples/vite/.yarn/install-state.gz

-8.61 KB
Binary file not shown.

examples/vite/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
"@storybook/test-runner": "^0.21.0",
3030
"@types/react": "^18.0.17",
3131
"@types/react-dom": "^18.0.6",
32-
"@vitejs/plugin-react": "^2.1.0",
32+
"@vitejs/plugin-react": "^3.1.0",
3333
"concurrently": "^9.1.0",
3434
"storybook": "^8.4.7",
3535
"typescript": "^4.6.4",
3636
"vite": "^4.2.1",
3737
"wait-on": "^8.0.1"
38-
}
38+
},
39+
"packageManager": "[email protected]"
3940
}

examples/vite/yarn.lock

+17-81
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __metadata:
7373
languageName: node
7474
linkType: hard
7575

76-
"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.18.13, @babel/core@npm:^7.7.5":
76+
"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.7.5":
7777
version: 7.19.3
7878
resolution: "@babel/core@npm:7.19.3"
7979
dependencies:
@@ -96,7 +96,7 @@ __metadata:
9696
languageName: node
9797
linkType: hard
9898

99-
"@babel/core@npm:^7.18.9, @babel/core@npm:^7.23.9":
99+
"@babel/core@npm:^7.18.9, @babel/core@npm:^7.20.12, @babel/core@npm:^7.23.9":
100100
version: 7.26.0
101101
resolution: "@babel/core@npm:7.26.0"
102102
dependencies:
@@ -178,15 +178,6 @@ __metadata:
178178
languageName: node
179179
linkType: hard
180180

181-
"@babel/helper-annotate-as-pure@npm:^7.18.6":
182-
version: 7.18.6
183-
resolution: "@babel/helper-annotate-as-pure@npm:7.18.6"
184-
dependencies:
185-
"@babel/types": "npm:^7.18.6"
186-
checksum: 10c0/e413cd022e1e21232c1ce98f3e1198ec5f4774c7eceb81155a45f9cb6d8481f3983c52f83252309856668e728c751f0340d29854b604530a694899208df6bcc3
187-
languageName: node
188-
linkType: hard
189-
190181
"@babel/helper-compilation-targets@npm:^7.19.3":
191182
version: 7.19.3
192183
resolution: "@babel/helper-compilation-targets@npm:7.19.3"
@@ -351,7 +342,7 @@ __metadata:
351342
languageName: node
352343
linkType: hard
353344

354-
"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.10.4, @babel/helper-plugin-utils@npm:^7.12.13, @babel/helper-plugin-utils@npm:^7.14.5, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.19.0, @babel/helper-plugin-utils@npm:^7.8.0":
345+
"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.10.4, @babel/helper-plugin-utils@npm:^7.12.13, @babel/helper-plugin-utils@npm:^7.14.5, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.8.0":
355346
version: 7.19.0
356347
resolution: "@babel/helper-plugin-utils@npm:7.19.0"
357348
checksum: 10c0/9ae9c09cf7e3b6023be2bb66f3ca3b5fa8c2b21b58bd09819d494fcd7ab2a1844056c8dfd609ffb474e3c857a1bc979fa7a60931b0c71d69a3e939ba724498ac
@@ -618,17 +609,6 @@ __metadata:
618609
languageName: node
619610
linkType: hard
620611

621-
"@babel/plugin-syntax-jsx@npm:^7.18.6":
622-
version: 7.18.6
623-
resolution: "@babel/plugin-syntax-jsx@npm:7.18.6"
624-
dependencies:
625-
"@babel/helper-plugin-utils": "npm:^7.18.6"
626-
peerDependencies:
627-
"@babel/core": ^7.0.0-0
628-
checksum: 10c0/d6d88b16e727bfe75c6ad6674bf7171bd5b2007ebab3f785eff96a98889cc2dd9d9b05a9ad8a265e04e67eddee81d63fcade27db033bb5aa5cc73f45cc450d6d
629-
languageName: node
630-
linkType: hard
631-
632612
"@babel/plugin-syntax-jsx@npm:^7.7.2":
633613
version: 7.25.9
634614
resolution: "@babel/plugin-syntax-jsx@npm:7.25.9"
@@ -728,17 +708,6 @@ __metadata:
728708
languageName: node
729709
linkType: hard
730710

731-
"@babel/plugin-transform-react-jsx-development@npm:^7.18.6":
732-
version: 7.18.6
733-
resolution: "@babel/plugin-transform-react-jsx-development@npm:7.18.6"
734-
dependencies:
735-
"@babel/plugin-transform-react-jsx": "npm:^7.18.6"
736-
peerDependencies:
737-
"@babel/core": ^7.0.0-0
738-
checksum: 10c0/95b37b76754288bb4de28a04f709306686ff80da57937421df9a520f9c2d8b59a2327962a8fd3bb109857790732d3cc767d86d106866e62521cee22d29f721df
739-
languageName: node
740-
linkType: hard
741-
742711
"@babel/plugin-transform-react-jsx-self@npm:^7.18.6":
743712
version: 7.18.6
744713
resolution: "@babel/plugin-transform-react-jsx-self@npm:7.18.6"
@@ -750,29 +719,14 @@ __metadata:
750719
languageName: node
751720
linkType: hard
752721

753-
"@babel/plugin-transform-react-jsx-source@npm:^7.18.6":
754-
version: 7.18.6
755-
resolution: "@babel/plugin-transform-react-jsx-source@npm:7.18.6"
756-
dependencies:
757-
"@babel/helper-plugin-utils": "npm:^7.18.6"
758-
peerDependencies:
759-
"@babel/core": ^7.0.0-0
760-
checksum: 10c0/af95477936a29f6c8c33277d6f1c8484309f7c8ddd2cb19a8e90d0ea944eb6a988d2ba21f4b9948918aa801cd0aaddbae6cea57a076f8cae2126fd5a43dbf57a
761-
languageName: node
762-
linkType: hard
763-
764-
"@babel/plugin-transform-react-jsx@npm:^7.18.10, @babel/plugin-transform-react-jsx@npm:^7.18.6":
765-
version: 7.19.0
766-
resolution: "@babel/plugin-transform-react-jsx@npm:7.19.0"
722+
"@babel/plugin-transform-react-jsx-source@npm:^7.19.6":
723+
version: 7.25.9
724+
resolution: "@babel/plugin-transform-react-jsx-source@npm:7.25.9"
767725
dependencies:
768-
"@babel/helper-annotate-as-pure": "npm:^7.18.6"
769-
"@babel/helper-module-imports": "npm:^7.18.6"
770-
"@babel/helper-plugin-utils": "npm:^7.19.0"
771-
"@babel/plugin-syntax-jsx": "npm:^7.18.6"
772-
"@babel/types": "npm:^7.19.0"
726+
"@babel/helper-plugin-utils": "npm:^7.25.9"
773727
peerDependencies:
774728
"@babel/core": ^7.0.0-0
775-
checksum: 10c0/ee0b44e67a3e4aa4046ee24c39c3eb241d206857f4f5f639f24698f67d393a86ee2964326c14c7c2cb920d56b3687dca277ba07a4662d254844b2d2676e42370
729+
checksum: 10c0/fc9ee08efc9be7cbd2cc6788bbf92579adf3cab37912481f1b915221be3d22b0613b5b36a721df5f4c0ab65efe8582fcf8673caab83e6e1ce4cc04ceebf57dfa
776730
languageName: node
777731
linkType: hard
778732

@@ -2642,20 +2596,18 @@ __metadata:
26422596
languageName: node
26432597
linkType: hard
26442598

2645-
"@vitejs/plugin-react@npm:^2.1.0":
2646-
version: 2.1.0
2647-
resolution: "@vitejs/plugin-react@npm:2.1.0"
2599+
"@vitejs/plugin-react@npm:^3.1.0":
2600+
version: 3.1.0
2601+
resolution: "@vitejs/plugin-react@npm:3.1.0"
26482602
dependencies:
2649-
"@babel/core": "npm:^7.18.13"
2650-
"@babel/plugin-transform-react-jsx": "npm:^7.18.10"
2651-
"@babel/plugin-transform-react-jsx-development": "npm:^7.18.6"
2603+
"@babel/core": "npm:^7.20.12"
26522604
"@babel/plugin-transform-react-jsx-self": "npm:^7.18.6"
2653-
"@babel/plugin-transform-react-jsx-source": "npm:^7.18.6"
2654-
magic-string: "npm:^0.26.2"
2605+
"@babel/plugin-transform-react-jsx-source": "npm:^7.19.6"
2606+
magic-string: "npm:^0.27.0"
26552607
react-refresh: "npm:^0.14.0"
26562608
peerDependencies:
2657-
vite: ^3.0.0
2658-
checksum: 10c0/e63e973e4de450e55215d5de705a388c1d72f08bacae44810225386fbed2ec49f8257603e9f86c2d6aa443e4b36d9f10a4d39b5aa2f566ed682d01836ddf65c8
2609+
vite: ^4.1.0-beta.0
2610+
checksum: 10c0/259a92a303cd736240dc0d3282d1261339e7bbcf51c5b326868c910b35d4bd22a360334b2dafa5bfc7f3e935f2cd0fdc7ccb6ec6b519b81017c4c4812cd05290
26592611
languageName: node
26602612
linkType: hard
26612613

@@ -5834,15 +5786,6 @@ __metadata:
58345786
languageName: node
58355787
linkType: hard
58365788

5837-
"magic-string@npm:^0.26.2":
5838-
version: 0.26.6
5839-
resolution: "magic-string@npm:0.26.6"
5840-
dependencies:
5841-
sourcemap-codec: "npm:^1.4.8"
5842-
checksum: 10c0/adc8b775e9bedd8c27f09abbc7b497da70a6058c45ce7b7023ce1a5ad2821321ad5f2c05bbbfd6b9bd9274af78561fc87d39068774e2e3af8873a29fa7e0c31f
5843-
languageName: node
5844-
linkType: hard
5845-
58465789
"magic-string@npm:^0.27.0":
58475790
version: 0.27.0
58485791
resolution: "magic-string@npm:0.27.0"
@@ -7170,13 +7113,6 @@ __metadata:
71707113
languageName: node
71717114
linkType: hard
71727115

7173-
"sourcemap-codec@npm:^1.4.8":
7174-
version: 1.4.8
7175-
resolution: "sourcemap-codec@npm:1.4.8"
7176-
checksum: 10c0/f099279fdaae070ff156df7414bbe39aad69cdd615454947ed3e19136bfdfcb4544952685ee73f56e17038f4578091e12b17b283ed8ac013882916594d95b9e6
7177-
languageName: node
7178-
linkType: hard
7179-
71807116
"spawn-wrap@npm:^2.0.0":
71817117
version: 2.0.0
71827118
resolution: "spawn-wrap@npm:2.0.0"
@@ -7778,7 +7714,7 @@ __metadata:
77787714
"@storybook/test-runner": "npm:^0.21.0"
77797715
"@types/react": "npm:^18.0.17"
77807716
"@types/react-dom": "npm:^18.0.6"
7781-
"@vitejs/plugin-react": "npm:^2.1.0"
7717+
"@vitejs/plugin-react": "npm:^3.1.0"
77827718
concurrently: "npm:^9.1.0"
77837719
react: "npm:^18.2.0"
77847720
react-dom: "npm:^18.2.0"
-63.2 KB
Binary file not shown.

examples/webpack5/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"webpack-dev-server": "latest"
3232
},
3333
"devDependencies": {
34-
"concurrently": "^9.1.0",
3534
"@storybook/addon-coverage": "link:../..",
3635
"@storybook/addon-essentials": "^8.4.7",
3736
"@storybook/addon-interactions": "^8.4.7",
@@ -40,7 +39,9 @@
4039
"@storybook/react-webpack5": "^8.4.7",
4140
"@storybook/test": "^8.4.7",
4241
"@storybook/test-runner": "^0.21.0",
42+
"concurrently": "^9.1.0",
4343
"storybook": "^8.4.7",
4444
"wait-on": "^8.0.1"
45-
}
45+
},
46+
"packageManager": "[email protected]"
4647
}

0 commit comments

Comments
 (0)