Skip to content

docs: improve origami beta website (#1799) #84

docs: improve origami beta website (#1799)

docs: improve origami beta website (#1799) #84

name: 'Chromatic deployment – O2 composition'
on:
push:
branches: [main]
paths:
- 'package.json'
- 'package-lock.json'
- 'apps/o2-storybook-composition/**'
jobs:
chromatic-deployment-o2-composition:
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.O2_COMPOSITION_CHROMATIC_PROJECT_TOKEN }}
workingDir: apps/o2-storybook-composition
exitOnceUploaded: true