This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
352313e
commit d76a345
Showing
1 changed file
with
48 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,48 @@ | ||
name: Publish to Storybook/Chromatic | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
storybook: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build Storybook | ||
run: npm run build:storybook | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: storybook-static | ||
|
||
chromatic: | ||
needs: storybook | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Publish to Chromatic | ||
uses: chromaui/action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
projectToken: ${{ secrets.CHROMATIC_TOKEN }} | ||
#name: Publish to Storybook/Chromatic | ||
#on: | ||
# push: | ||
# branches: [main] | ||
# | ||
#jobs: | ||
# storybook: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: "18" | ||
# | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# | ||
# - name: Build Storybook | ||
# run: npm run build:storybook | ||
# | ||
# - name: Deploy to GitHub Pages | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: storybook-static | ||
# | ||
# chromatic: | ||
# needs: storybook | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# fetch-depth: 0 | ||
# | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: "18" | ||
# | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# | ||
# - name: Publish to Chromatic | ||
# uses: chromaui/action@v1 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# projectToken: ${{ secrets.CHROMATIC_TOKEN }} | ||
# |