-
Notifications
You must be signed in to change notification settings - Fork 143
36 lines (33 loc) · 1.02 KB
/
blade-chromatic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Blade Chromatic
on: push
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
jobs:
chromatic-deployment:
name: Chromatic Deployment
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner
steps:
- name: Checkout Codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node v18
uses: actions/setup-node@v3
with:
node-version: 18.12.1
- name: Setup Cache & Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ env.GITHUB_ACCESS_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/blade
buildScriptName: react:storybook:build
exitOnceUploaded: true
onlyChanged: true
untraced: '**/package.json'
traceChanged: 'expanded'
env:
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}