-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1ddb3f
commit 6cb5150
Showing
3 changed files
with
40 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Chromatic PR | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- run: npx nx run-many -t build -p @ory/elements-react -p @ory/elements | ||
|
||
- run: npx nx run-many --all -t build-storybook -- --stats-json | ||
|
||
- uses: chromaui/[email protected] | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
exitOnceUploaded: true | ||
workingDir: packages/legacy-stories | ||
storybookBuildDir: storybook-static | ||
onlyChanged: true | ||
- uses: chromaui/[email protected] | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }} | ||
exitOnceUploaded: true | ||
workingDir: packages/elements-react-stories | ||
storybookBuildDir: storybook-static | ||
onlyChanged: true |
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 |
---|---|---|
|
@@ -46,18 +46,6 @@ jobs: | |
examples/nextjs-spa/playwright-report/ | ||
examples/nextjs-spa/test-results/ | ||
retention-days: 7 | ||
- uses: chromaui/[email protected] | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
exitOnceUploaded: true | ||
workingDir: packages/legacy-stories | ||
storybookBuildDir: storybook-static | ||
- uses: chromaui/[email protected] | ||
with: | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ELEMENTS_REACT }} | ||
exitOnceUploaded: true | ||
workingDir: packages/elements-react-stories | ||
storybookBuildDir: storybook-static | ||
|
||
- name: Upload results to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
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