-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci(workflows): enhance Chromatic workflow and update deployment configurations * fix(packages/viewer): update controlsOptions to disable auto-rotate in Default story * ci(workflows): update Storybook build command to use npx nx for chromatic workflow * ci(workflows): update Chromatic workflow to use Ubuntu 20.04 and set publishing environment
- Loading branch information
Showing
3 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,49 @@ | ||
name: Publish vctrl/viewer Storybook to Chromatic | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
#exclude dependabot and renovate branches | ||
on: push | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-chromatic | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
actions: write | ||
contents: read | ||
|
||
jobs: | ||
chromatic: | ||
name: Run Chromatic | ||
runs-on: ubuntu-22.04 | ||
name: Chromatic | ||
runs-on: ubuntu-20.04 | ||
environment: chromatic-publishing | ||
|
||
steps: | ||
- name: Checkout code | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
cache-dependency-path: ./package.json | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
- name: 📥 Install deps | ||
run: npm install | ||
|
||
- name: Build Storybook | ||
run: npx nx build-storybook vctrl/viewer | ||
|
||
- name: Run Chromatic | ||
- name: ⚡ Run chromatic | ||
uses: chromaui/action@latest | ||
# Chromatic GitHub Action options | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_1 }} | ||
workingDir: packages/viewer | ||
autoAcceptChanges: 'main' | ||
exitZeroOnChanges: true | ||
exitOnceUploaded: true | ||
onlyChanged: true | ||
skip: '@(renovate/**|dependabot/**)' |
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
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