Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
actions: disable storybook workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland committed Aug 2, 2022
1 parent 352313e commit d76a345
Showing 1 changed file with 48 additions and 47 deletions.
95 changes: 48 additions & 47 deletions .github/workflows/storybook.yaml
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 }}
#

0 comments on commit d76a345

Please sign in to comment.