Skip to content

Commit 06885b1

Browse files
authored
Merge pull request #276 from storybookjs/norbert/add-compat-sb-10betas
Update peerDependencies for storybook 10.1 beta compatibility
2 parents ba95d4e + 6e616d9 commit 06885b1

File tree

9 files changed

+4871
-7860
lines changed

9 files changed

+4871
-7860
lines changed

.github/workflows/check-pushes.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ jobs:
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Use PNPM
15+
uses: pnpm/action-setup@v4
1216
- name: Setup Node.js
1317
uses: actions/setup-node@v4
1418
with:
1519
node-version-file: .nvmrc
16-
cache: npm
1720
- name: Install dependencies
18-
run: npm ci
21+
run: pnpm install
1922
- name: Check files are formatted with Prettier
20-
run: npx prettier --check README.md CONTRIBUTING.md package.json "packages/**/*.{js,jsx,ts,tsx,md,mdx,json}"
23+
run: pnpm prettier --check README.md CONTRIBUTING.md package.json "packages/**/*.{js,jsx,ts,tsx,md,mdx,json}"
2124
- name: Check TypeScript typings
2225
run: |
2326
cd packages/storybook-addon-designs
24-
npx tsc --noEmit
27+
pnpm run check

.github/workflows/deploy-ghpages.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: Use PNPM
20+
uses: pnpm/action-setup@v4
1721
- name: Setup Node.js
1822
uses: actions/setup-node@v4
1923
with:
2024
node-version-file: .nvmrc
21-
cache: npm
2225
- name: Install dependencies
23-
run: npm ci
26+
run: pnpm install
2427
- name: Build addon
25-
run: npm run build
28+
run: pnpm run build
2629
- name: Build examples
27-
run: npm run build:example
30+
run: pnpm run build:example
2831
- name: Upload Pages artifact
2932
uses: actions/upload-pages-artifact@v2
3033
with:

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@ 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@v4
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
1114

12-
- name: Prepare repository
13-
run: git fetch --unshallow --tags
15+
- name: Use PNPM
16+
uses: pnpm/action-setup@v4
1417

1518
- name: Use Node.js 22.x
1619
uses: actions/setup-node@v4
1720
with:
18-
node-version: 22.x
19-
cache: npm
21+
node-version-file: .nvmrc
22+
2023
- name: Install dependencies
21-
run: npm install --ignore-scripts
24+
run: pnpm install
2225

2326
- name: Build
2427
run: |
25-
npm run build
28+
pnpm run build
2629
2730
- name: No git changes
2831
run: |
@@ -33,4 +36,4 @@ jobs:
3336
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
3437
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3538
run: |
36-
npm run release
39+
pnpm run release

0 commit comments

Comments
 (0)