Skip to content

Commit 17cd8b7

Browse files
author
Rumen Petrov
committed
CI setup alternative approach
1 parent be9ba4c commit 17cd8b7

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed
+5-28
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,12 @@
1-
# Workflow name
2-
name: Build and Publish Storybook to GitHub Pages
3-
1+
name: Build and Publish storybook to GitHub Pages
42
on:
5-
# Event for the workflow to run on
63
push:
74
branches:
8-
- 'main' # Replace with the branch you want to deploy from
9-
10-
permissions:
11-
contents: read
12-
pages: write
13-
id-token: write
14-
15-
# List of jobs
5+
- "main"
166
jobs:
177
deploy:
188
runs-on: ubuntu-latest
19-
# Job steps
209
steps:
21-
# Manual Checkout
22-
- uses: actions/checkout@v3
23-
24-
# Set up Node
25-
- uses: actions/setup-node@v3
26-
with:
27-
node-version: '20.x'
28-
29-
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
30-
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1
31-
with:
32-
install_command: npm install # default: npm ci
33-
build_command: npm run build-storybook # default: npm run build-storybook
34-
path: storybook-static # default: dist/storybook
35-
checkout: false # default: true
10+
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0
11+
with:
12+
path: storybook-static # default: dist/storybook

0 commit comments

Comments
 (0)