bitwarden-estensione-browser/.github/workflows/chromatic.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
YAML
Raw Normal View History

2022-03-15 13:50:42 +01:00
---
name: Chromatic
2022-06-22 14:32:45 +02:00
on:
push:
paths-ignore:
- '.github/workflows/**'
2022-03-15 13:50:42 +01:00
jobs:
chromatic:
name: Chromatic
runs-on: ubuntu-20.04
steps:
- name: Set up Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
2022-03-15 13:50:42 +01:00
with:
node-version: "16"
- name: Checkout repo
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2022-03-15 13:50:42 +01:00
with:
fetch-depth: 0
- name: Cache npm
id: npm-cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
2022-03-15 13:50:42 +01:00
with:
path: "~/.npm"
key: ${{ runner.os }}-npm-chromatic-${{ hashFiles('**/package-lock.json') }}
- name: Install Node dependencies
run: npm ci
# Manual build the storybook to resolve a chromatic/storybook bug related to TurboSnap
- name: Build Storybook
run: npm run build-storybook:ci
2022-03-15 13:50:42 +01:00
- name: Publish to Chromatic
uses: chromaui/action@a45a922b9a7522a4cbb59a7bb7b288a768968924
2022-03-15 13:50:42 +01:00
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: ./storybook-static
2022-03-15 13:50:42 +01:00
exitOnceUploaded: true
onlyChanged: true
2023-09-14 18:31:48 +02:00
externals: "[\"libs/components/**/*.scss\", \"libs/components/**/*.css\", \"libs/components/tailwind.config*.js\"]"