Skip to content

Commit 387216b

Browse files
committed
feat: migrate demo deployment to pnpm package manager
- Replaced npm with pnpm for dependency management in GitHub Actions workflow - Added pnpm/action-setup@v4 step with version 9 - Simplified dependency installation using pnpm install with frozen lockfile - Updated build command to use pnpm workspace filtering syntax - Removed conditional npm ci/install logic since pnpm handles this automatically - Removed npm-specific cache configuration from node setup
1 parent 392931e commit 387216b

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/deploy-demo.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,21 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
with:
27+
version: 9
28+
2429
- name: Setup Node
2530
uses: actions/setup-node@v4
2631
with:
2732
node-version: 20
28-
cache: 'npm'
29-
30-
- name: Install dependencies (use lockfile if present)
31-
run: |
32-
if [ -f package-lock.json ]; then
33-
echo "Using npm ci with package-lock.json";
34-
npm ci;
35-
else
36-
echo "No package-lock.json found. Falling back to npm install";
37-
npm install;
38-
fi
33+
34+
- name: Install dependencies
35+
run: pnpm install --frozen-lockfile || pnpm install
3936

4037
- name: Build demo for GitHub Pages
41-
run: npm run build:gh --workspace=@crest-ui/demo
38+
run: pnpm --filter @crest-ui/demo run build:gh
4239

4340
- name: Upload static site
4441
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)