mirror of
https://github.com/bitwarden/browser
synced 2025-01-03 05:38:33 +01:00
a9ab32b476
* update all actions for version pin * Fix typo * Actions version pin final push * upadte set-up DCT job to use latest gh action
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
name: Chromatic
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '.github/workflows/**'
|
|
|
|
jobs:
|
|
chromatic:
|
|
name: Chromatic
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Set up Node
|
|
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0.0
|
|
with:
|
|
node-version: "16"
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Cache npm
|
|
id: npm-cache
|
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
|
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@d51b84e79d164fbe8fc5bb7175695d88ddd04b72 # v1.0.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
exitOnceUploaded: true
|
|
onlyChanged: true
|
|
externals: "[\"libs/components/**/*.scss\", \"libs/components/tailwind.config*.js\"]"
|