Skip to content

Commit 7ff97dc

Browse files
committed
**Chore(deploy-demo.yml): update node version and simplify steps**
- Use consistent node version syntax. - Remove redundant dependency installation steps. - Simplify build and deployment steps.
1 parent 1cc4331 commit 7ff97dc

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/deploy-demo.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ jobs:
3232
- name: Setup Node.js
3333
uses: actions/setup-node@v4
3434
with:
35-
node-version: '20'
35+
node-version: "20"
3636

37-
- name: Remove local split-button reference and install from npm
38-
run: |
39-
npm remove @softwarity/split-button
40-
npm i @softwarity/split-button
37+
- name: Install dependencies
38+
run: npm ci
4139

42-
- name: Remove path mapping for demo
43-
run: sed -i '/"paths"/,/}/d' projects/demo/tsconfig.app.json
40+
- name: Build the library from source
41+
run: npm run build
4442

4543
- name: Build demo for GitHub Pages
4644
run: npm run build:demo -- --base-href /split-button/
@@ -51,7 +49,7 @@ jobs:
5149
- name: Upload artifact
5250
uses: actions/upload-pages-artifact@v3
5351
with:
54-
path: './dist/demo/browser'
52+
path: "./dist/demo/browser"
5553

5654
- name: Deploy to GitHub Pages
5755
id: deployment

0 commit comments

Comments
 (0)