React 18 #5297
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
test: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- run: yarn | |
- run: yarn prettier-check | |
- run: NODE_ENV=production PUBLIC_PATH=/ STORYBOOK_ENV=chromatic yarn build | |
- run: yarn test | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: 5ef54a1fca5c | |
exitZeroOnChanges: true | |
autoAcceptChanges: 'master' | |
buildScriptName: 'build-chromatic' | |
env: | |
STORYBOOK_ENV: 'chromatic' |