Skip to content

Commit 5ed9732

Browse files
authored
ci: migrate to github-actions-storybook-to-github-pages
1 parent 2d4bf81 commit 5ed9732

File tree

4 files changed

+24
-179
lines changed

4 files changed

+24
-179
lines changed

.github/workflows/main.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@ on:
55
branches:
66
- master
77

8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
813
jobs:
914
faency:
1015
name: Deploy
16+
if: github.repository == 'traefik/faency'
1117
runs-on: ubuntu-latest
1218

1319
steps:
@@ -25,18 +31,12 @@ jobs:
2531
git config --local user.email "[email protected]"
2632
git config --local user.name "traefiker"
2733
28-
- name: Install
29-
run: yarn install --frozen-lockfile --production
30-
31-
- name: Patch
32-
run: yarn patch
33-
34-
- name: Build
35-
env:
36-
NODE_ENV: production
37-
run: yarn build
38-
3934
- name: Deploy
40-
run: yarn deploy-storybook
35+
uses: bitovi/github-actions-storybook[email protected]
4136
env:
42-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
37+
NODE_ENV: production
38+
with:
39+
install_command: yarn install --frozen-lockfile --production && yarn patch
40+
build_command: yarn build-storybook
41+
path: storybook-static
42+
checkout: false

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
@@ -7,6 +8,7 @@ on:
78
jobs:
89
faency:
910
name: Release
11+
if: github.repository == 'traefik/faency'
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Checkout

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006 -h localhost",
3838
"storybook-docs": "storybook dev --docs",
3939
"build-storybook": "cross-env NODE_OPTIONS=--openssl-legacy-provider storybook build",
40-
"deploy-storybook": "storybook-to-ghpages",
4140
"test": "jest --watch",
4241
"test:ci": "jest --ci --silent",
4342
"patch": "patch-package",
@@ -98,7 +97,6 @@
9897
"@storybook/mdx2-csf": "^0.0.3",
9998
"@storybook/react": "^7.6.17",
10099
"@storybook/react-vite": "^7.6.17",
101-
"@storybook/storybook-deployer": "^2.8.16",
102100
"@storybook/theming": "^7.6.17",
103101
"@types/jest": "^27.4.1",
104102
"@types/jest-axe": "^3.5.3",

0 commit comments

Comments
 (0)