ci: tweak
This commit is contained in:
parent
d724e20c7d
commit
72f528295d
8
.github/workflows/storybook.yml
vendored
8
.github/workflows/storybook.yml
vendored
|
@ -9,6 +9,9 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: "--max_old_space_size=7168"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.3.0
|
- uses: actions/checkout@v3.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -32,8 +35,6 @@ jobs:
|
||||||
run: pnpm --filter misskey-js build
|
run: pnpm --filter misskey-js build
|
||||||
- name: Build storybook
|
- name: Build storybook
|
||||||
run: pnpm --filter frontend build-storybook
|
run: pnpm --filter frontend build-storybook
|
||||||
env:
|
|
||||||
NODE_OPTIONS: "--max_old_space_size=7168"
|
|
||||||
- name: Publish to Chromatic
|
- name: Publish to Chromatic
|
||||||
id: chromatic
|
id: chromatic
|
||||||
uses: chromaui/action@v1
|
uses: chromaui/action@v1
|
||||||
|
@ -47,9 +48,10 @@ jobs:
|
||||||
- "misskey-assets/**"
|
- "misskey-assets/**"
|
||||||
- "packages/frontend/assets/**"
|
- "packages/frontend/assets/**"
|
||||||
- "packages/frontend/public/**"
|
- "packages/frontend/public/**"
|
||||||
|
- "pnpm-lock.yaml"
|
||||||
onlyChanged: "!(master)"
|
onlyChanged: "!(master)"
|
||||||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
||||||
storybookBaseDir: packages/frontend
|
workingDir: packages/frontend
|
||||||
traceChanged: extended
|
traceChanged: extended
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|
Loading…
Reference in a new issue