chore: remove remark (#2355) #422
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Chromatic deployment – O2' | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'package.json' | |
| - 'package-lock.json' | |
| - 'apps/o2-storybook/**' | |
| - 'components/**' | |
| - '!components/o3-*/**' | |
| - 'components/o3-foundation/**' | |
| 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@v4 | |
| 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 | |
| # 👇 The flags include looking for workspaces in the root directory | |
| run: npm ci --workspaces --include-workspace-root | |
| # 👇 Adds Chromatic as a step in the workflow | |
| - name: Publish Origami to Chromatic | |
| uses: chromaui/action@v1 | |
| with: | |
| projectToken: ${{ secrets[matrix.chromatic_secret] }} | |
| # dryRun: true 👈 (use this for debugging in the future) | |
| workingDir: apps/o2-storybook | |
| exitOnceUploaded: true | |
| env: | |
| STORYBOOK_BRAND: ${{ matrix.brand }} |