Skip to content

Commit b349f63

Browse files
committed
Merge branch 'main' into develop
2 parents 96a68d9 + 8816f88 commit b349f63

33 files changed

+414
-1547
lines changed

.github/workflows/deploy.yaml

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,58 @@
1-
name: Publish To Github Pages
1+
name: Deploy Storybook to GitHub Pages
22

33
on:
44
push:
5-
branches: ["main"]
6-
pull_request:
7-
branches: ["main"]
5+
branches: [ main ]
6+
workflow_dispatch:
87

9-
env:
10-
CI: false
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
1116

1217
jobs:
1318
build:
1419
runs-on: ubuntu-latest
15-
environment:
16-
name: github-pages
17-
url: ${{ steps.deployment.outputs.page_url }}
18-
19-
permissions:
20-
contents: "read"
21-
id-token: "write"
22-
pages: "write"
23-
actions: "write"
24-
checks: "write"
25-
deployments: "write"
26-
strategy:
27-
matrix:
28-
node-version: [18.x]
29-
3020
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v3
33-
- name: Setup Node
34-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
3526
with:
36-
node-version-file: ".nvmrc"
37-
cache: npm
27+
node-version-file: '.nvmrc'
28+
cache: 'npm'
29+
3830
- name: Install dependencies
3931
run: |
40-
npm ci
32+
ls
33+
pwd
34+
rm -rf **/node_modules
35+
rm -rf package-lock.json
36+
npm install || true
37+
4138
- name: Build Storybook
42-
run: |
43-
npm run build-storybook
39+
run: npm run build-storybook
40+
41+
- name: Setup Pages
42+
uses: actions/configure-pages@v5
4443

45-
- name: Deploy
46-
uses: peaceiris/actions-gh-pages@v4
44+
- name: Upload artifact
45+
uses: actions/upload-pages-artifact@v3
4746
with:
48-
github_token: ${{ secrets.GITHUB_TOKEN }}
49-
publish_dir: ./storybook-static
47+
path: './storybook-static'
48+
49+
deploy:
50+
needs: build
51+
environment:
52+
name: github-pages
53+
url: ${{ steps.deployment.outputs.page_url }}
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Deploy to GitHub Pages
57+
id: deployment
58+
uses: actions/deploy-pages@v4

.github/workflows/gh-pages.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)