This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
FLOW-950 Chromatic CI #1
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 Tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
working-directory: . | |
jobs: | |
lint: | |
name: Chromatic Tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js 18.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
- name: Install pnpm | |
run: corepack enable && corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: pnpm install | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
zip: true | |
onlyChanged: true |