Upgrade CI to Node 18 and deprecate Node 14 #434
Workflow file for this run
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 | |
# Runs chromatic on: | |
# every pull request where there are changes in stories/ or packages/ and the PR is not in draft mode | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'stories/**' | |
- 'packages/**' | |
jobs: | |
chromatic: | |
name: Storybook Publish | |
if: github.event.pull_request.draft == false && github.repository == 'FormidableLabs/victory' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Build Storybook | |
run: pnpm run storybook:build | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |