Skip to content

remove: Switch to v2 docs site #546

remove: Switch to v2 docs site

remove: Switch to v2 docs site #546

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/[email protected]
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