Skip to content

Commit c920b98

Browse files
committed
storybook action updates
Signed-off-by: Michael Edgar <medgar@redhat.com>
1 parent 18ee4d7 commit c920b98

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/storybook.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,24 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
- name: Install Dependencies
21-
run: npm install
22-
working-directory: ./ui
23-
2420
- name: Build Storybook
25-
run: npm run build-storybook
2621
working-directory: ./ui
22+
run: |
23+
npm ci
24+
npx playwright install
25+
npm run build-storybook
2726
2827
- name: Publish to Chromatic
2928
id: chromatic
3029
uses: chromaui/action@v11
3130
with:
3231
token: ${{ secrets.GITHUB_TOKEN }}
33-
projectToken: chpt_0314d7b0d66ad0c
32+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
3433
storybookBuildDir: "storybook-static"
3534
workingDir: "./ui"
3635
exitOnceUploaded: true
3736

38-
- name: Test the deployed Storybook
37+
- name: Test Storybook
38+
working-directory: ./ui
3939
run: |
40-
npx playwright install
4140
npm run test-storybook -- --no-index-json --url ${{ steps.chromatic.outputs.storybookUrl }}
42-
working-directory: ./ui

0 commit comments

Comments
 (0)