Skip to content

Commit 3cd5c79

Browse files
committed
fix: activate latest pnpm
1 parent c6a790c commit 3cd5c79

1 file changed

Lines changed: 24 additions & 9 deletions

File tree

.github/workflows/build-storybook-demo.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,36 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
1112
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: '20'
16-
- uses: pnpm/action-setup@v4
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
# Step 1 — Install Node 24 (Corepack enabled by default)
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
1719
with:
18-
version: 9
19-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
20+
node-version: 24
21+
cache: 'pnpm'
22+
23+
# Step 2 — Disable Corepack (MUST DO on Node 24)
24+
- name: Disable Corepack
25+
run: corepack disable
26+
27+
# Step 3 — Install pnpm manually (latest version)
28+
- name: Install pnpm
29+
run: npm install -g pnpm@latest
30+
31+
# Step 4 — Build Storybook
32+
- name: Install and Build Storybook
2033
run: |
2134
pnpm install --frozen-lockfile
2235
pnpm run build-storybook
2336
37+
# Step 5 — Deploy to GitHub Pages
2438
- name: Deploy 🚀
2539
uses: JamesIves/github-pages-deploy-action@v4
2640
with:
27-
branch: gh-pages # The branch the action should deploy to.
28-
folder: docs # The folder the action should deploy.
41+
branch: gh-pages
42+
folder: docs
43+
clean: true

0 commit comments

Comments
 (0)