-
Notifications
You must be signed in to change notification settings - Fork 36
43 lines (38 loc) · 1.03 KB
/
chromatic-prod.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
37
38
39
40
41
42
43
name: Chromatic Production
on:
push:
branches:
- main
jobs:
upload:
name: Upload to Chromatic and Automatically Approve
runs-on: ubuntu-latest
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2.5.1
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
always-auth: true
cache: npm
- name: Install npm dependencies
run: |
npm ci
npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- uses: chromaui/action@v1
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
exitOnceUploaded: true
autoAcceptChanges: true
onlyChanged: true