-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (38 loc) · 1.21 KB
/
storybook-fork.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build and deploy Storybook (Fork)
on:
pull_request:
branches:
- 'main'
jobs:
deploy-storybooks:
# TODO: Move this to deployment only
environment: Storybook
env:
PIA_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_PIA }}
AA_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_AA }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: npm ci
- name: Build PIA Storybook
run: npx nx run portal-integration-angular:build-storybook
- name: Publish to PIA Chromatic
uses: chromaui/action@latest
if: env.PIA_TOKEN != null
with:
projectToken: ${{ env.PIA_TOKEN }}
storybookBuildDir: dist/storybook/portal-integration-angular
skip: 'dependabot/**'
- name: Build AA Storybook
run: npx nx run angular-accelerator:build-storybook
- name: Publish to AA Chromatic
uses: chromaui/action@latest
if: env.AA_TOKEN != null
with:
projectToken: ${{ env.AA_TOKEN }}
storybookBuildDir: dist/storybook/angular-accelerator
skip: 'dependabot/**'