Skip to content

chore: Restore dictionary to an app #212

chore: Restore dictionary to an app

chore: Restore dictionary to an app #212

Workflow file for this run

name: 'Chromatic deployment – O2'
on:
push:
branches: [main]
paths:
- 'package.json'
- 'package-lock.json'
- 'apps/o2-storybook/**'
- 'components/**'
- '!components/o3-*/**'
jobs:
chromatic-deployment-o2:
strategy:
matrix:
brand: [core, internal, whitelabel]
include:
- brand: core
chromatic_secret: O2_CORE_CHROMATIC_PROJECT_TOKEN
- brand: internal
chromatic_secret: O2_INTERNAL_CHROMATIC_PROJECT_TOKEN
- brand: whitelabel
chromatic_secret: O2_WHITELABEL_CHROMATIC_PROJECT_TOKEN
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Configure Cloudsmith
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
npm config set registry=https://npm.packages.ft.com/financial-times-internal-releases/
npm config set //npm.packages.ft.com/financial-times-internal-releases/:_authToken=${CLOUDSMITH_API_KEY}
- name: Install node modules
run: npm ci
# 👇 Adds Chromatic as a step in the workflow
- name: Publish Origami to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets[matrix.chromatic_secret] }}
workingDir: apps/o2-storybook
exitOnceUploaded: true
env:
ORIGAMI_STORYBOOK_BRAND: ${{ matrix.brand }}