[Debt] Removes expectedClassifications
, expectedSalary
, expectedGenericJobTitle
#11431
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 Storybook | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- .github/workflows/storybook.yml | |
- packages/** | |
- apps/** | |
pull_request: | |
paths: | |
- .github/workflows/storybook.yml | |
- packages/** | |
- apps/** | |
jobs: | |
deployment: | |
# 1. Always run for commits on main branch, and for any other commits... | |
# 2. Never run automatically on first trigger event, only on manual re-run. | |
if: ${{ github.ref_name == 'main' || github.run_attempt > 1 }} | |
runs-on: ubuntu-22.04 | |
env: | |
NPM_VERSION: "8.11.0" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# Chromatic requires full git history. | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: "./.nvmrc" | |
cache: npm | |
cache-dependency-path: | | |
./package-lock.json | |
- name: Upgrade to latest npm | |
run: npm install --location=global npm@${{ env.NPM_VERSION }} | |
- name: "Install dependencies: workspace" | |
working-directory: ./ | |
run: | | |
npm install | |
- name: "Setup: all workspaces" | |
working-directory: ./ | |
run: | | |
npm run codegen | |
npm run intl-compile | |
- name: "Build: all workspaces" | |
working-directory: ./ | |
run: | | |
npm run build | |
- name: "Publish Storybook: all" | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
# Auto-accept UI Tests on Chromatic platform. | |
# We use this setting because we're not relying on UI Tests at the | |
# moment, and want the GitHub status check in PRs (for "UI Tests") to | |
# display immediately as "passing". | |
autoAcceptChanges: true |