1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-22 16:12:07 +01:00
bitwarden-estensione-browser/.github/workflows/chromatic.yml

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

43 lines
1.1 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
2022-06-20 18:23:11 +02:00
uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
2022-03-15 13:50:42 +01:00
with:
node-version: "16"
- name: Checkout repo
2022-06-20 18:23:11 +02:00
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
2022-03-15 13:50:42 +01:00
with:
fetch-depth: 0
- name: Cache npm
id: npm-cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
with:
path: "~/.npm"
key: ${{ runner.os }}-npm-chromatic-${{ hashFiles('**/package-lock.json') }}
- name: Install Node dependencies
run: npm ci
- name: Publish to Chromatic
uses: chromaui/action@c72f0b48c8887c0ef0abe18ad865a6c1e01e73c6
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
onlyChanged: true
2022-08-05 17:45:36 +02:00
externals: "[\"libs/components/**/*.scss\", \"libs/components/tailwind.config*.js\"]"