chore: pin tokens to v2 for now while we work through tokens build issue #511
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |