Skip to content

Merge pull request #277 from bastianjakobi/feat/add-improved-sb-deplo… #211

Merge pull request #277 from bastianjakobi/feat/add-improved-sb-deplo…

Merge pull request #277 from bastianjakobi/feat/add-improved-sb-deplo… #211

Workflow file for this run

name: Deploy Storybook
on:
push:
branches:
- '**'
jobs:
deploy-storybooks:
runs-on: ubuntu-latest
environment: Storybook
env:
PIA_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_PIA }}
AA_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_AA }}
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
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
with:
projectToken: ${{ env.AA_TOKEN }}
storybookBuildDir: dist/storybook/angular-accelerator
skip: 'dependabot/**'