Merge pull request #257 from CivicDataLab/dev #9
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: 'OPub Viz' | |
on: | |
push: | |
paths: | |
- 'packages/opub-viz/**' | |
branches: | |
- main | |
jobs: | |
chromatic-deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
node-version: 16 | |
fetch-depth: 0 # Required to retrieve git history | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn | |
- name: Publish Library to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.OPUB_VIZ_PROJECT_TOKEN }} | |
workingDir: packages/opub-viz | |
onlyChanged: true | |
externals: packages/(icons/icons|tokens/src)/** |