chore(release): publish 5.0.17 #162
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 e2e component tests' | |
on: | |
push: | |
paths: | |
- 'apps/storybook-hubert/**' | |
- 'libs/**' | |
- '.github/workflows/chromatic.yaml' | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
GITHUB_ACTIONS: true | |
jobs: | |
storybook-chromatic: | |
name: Storybook visual testing on Chromatic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PNPM package manager | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install npm dependencies | |
run: pnpm install | |
- name: Build storybook | |
run: NODE_ENV=test pnpm nx build storybook-hubert | |
- name: Send to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
workingDir: './apps/storybook-hubert' | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
skip: 'dependabot/**' | |
autoAcceptChanges: 'main' | |
storybookBuildDir: storybook-static | |
env: | |
NODE_ENV: test |