mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 04:52:14 +03:00
39 lines
975 B
YAML
39 lines
975 B
YAML
name: Publish Storybook
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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
|
|
environment: development
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.merge_commit_sha }}
|
|
# 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
|
|
- name: Publish to Chromatic
|
|
uses: chromaui/action@v1
|
|
with:
|
|
workingDir: apps/storybook
|
|
buildScriptName: build
|
|
onlyChanged: true
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|