2021-05-25 07:57:02 +03:00
|
|
|
name: Chromatic Deployment
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'pkg/interface/**'
|
2021-05-26 04:08:03 +03:00
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'pkg/interface/**'
|
|
|
|
branches:
|
|
|
|
- 'release/next-userspace'
|
2021-05-25 07:57:02 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
chromatic-deployment:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Deploy Chromatic"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-07-02 04:16:51 +03:00
|
|
|
- run: npm i && npm run bootstrap
|
2021-05-25 07:57:02 +03:00
|
|
|
- name: Publish to Chromatic
|
|
|
|
uses: chromaui/action@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
2021-05-25 08:16:33 +03:00
|
|
|
workingDir: pkg/interface
|