AFFiNE/.github/workflows/publish-storybook.yml

39 lines
986 B
YAML
Raw Normal View History

2023-08-16 08:38:45 +03:00
name: Publish Storybook
2023-08-16 08:36:24 +03:00
on:
push:
branches:
- master
2023-08-16 08:36:24 +03:00
pull_request_target:
branches:
- master
paths-ignore:
- README.md
- .github/**
- '!.github/workflows/publish-storybook.yml'
jobs:
publish-storybook:
name: Publish Storybook
runs-on: ubuntu-latest
2023-08-16 19:31:13 +03:00
environment: development
2023-08-16 08:36:24 +03:00
steps:
- uses: actions/checkout@v3
with:
2023-08-16 08:54:57 +03:00
ref: ${{ github.event.pull_request.merge_commit_sha }}
2023-08-16 08:36:24 +03:00
# This is required to fetch all commits for chromatic
fetch-depth: 0
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
electron-install: false
- name: Build Plugins
run: yarn run build:plugins
2023-08-16 08:36:24 +03:00
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
workingDir: apps/storybook
buildScriptName: build
onlyStoryNames: 'Preview/**'
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}