Skip to content

Commit 64b4c28

Browse files
chore: reverting storybook main
1 parent ff75900 commit 64b4c28

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed
+18-12
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
1-
name: Deploy Main Storybook
1+
name: Build and Deploy Storybook
22

33
on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
7+
workflow_call:
8+
secrets:
9+
PUBLISH_STORYBOOK_TOKEN:
10+
required: true
811

912
jobs:
10-
build-and-deploy:
11-
name: Build and Deploy Main Storybook
12-
runs-on: ubuntu-latest
13+
build-deploy-storybook:
14+
name: Build and Deploy Storybook
1315
permissions:
1416
contents: write
17+
runs-on: ubuntu-latest
1518
environment: github-pages
1619
defaults:
1720
run:
1821
working-directory: apps/storybook-react
1922
steps:
20-
- name: Checkout and setup high risk environment
23+
- name: Checkout and setup environment
2124
uses: MetaMask/action-checkout-and-setup@v1
2225
with:
23-
is-high-risk-environment: true
24-
skip-allow-scripts: true
26+
is-high-risk-environment: false
27+
cache-node-modules: true
28+
29+
- name: Install dependencies
30+
run: yarn --immutable
2531

26-
- name: Build storybook
32+
- name: Build Storybook
2733
run: yarn build-storybook
2834

2935
- name: Deploy to GitHub Pages
3036
uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935
3137
with:
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: apps/storybook-react/storybook-static
34-
destination_dir: storybook
38+
personal_token: ${{ secrets.PUBLISH_STORYBOOK_TOKEN }}
39+
publish_dir: ./storybook-static
40+
destination_dir: storybook-static

0 commit comments

Comments
 (0)