Skip to content

Commit 8012f2f

Browse files
committed
fix: deploying storybook
1 parent 52debf8 commit 8012f2f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
release:
99
types: [published]
1010

11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
1116
jobs:
1217
publish:
1318
runs-on: ubuntu-latest
@@ -23,15 +28,11 @@ jobs:
2328
node-version: lts/*
2429
cache: 'yarn'
2530

26-
- name: Install dependencies
27-
run: yarn install --frozen-lockfile
28-
29-
- name: Build Storybook
30-
run: yarn build-storybook
31-
3231
- name: Deploy Storybook
3332
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1
3433
with:
34+
install_command: yarn install --frozen-lockfile
35+
build_command: yarn build-storybook
3536
path: storybook-static
3637
env:
3738
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)