-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Target tags for action. Snapshot on label
- Loading branch information
Showing
4 changed files
with
67 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Chromatic on label | ||
on: [pull_request] | ||
|
||
jobs: | ||
snapshot: | ||
name: Run visual regression tests with chromatic (label triggered) | ||
if: github.event.label.name == 'snapshot' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Read .nvmrc | ||
run: echo ::set-output name=nvmrc::$(cat .nvmrc) | ||
id: nvm | ||
- name: Setup node | ||
uses: actions/setup-node@v1.1.1 | ||
with: | ||
node-version: '${{ steps.nvm.outputs.nvmrc }}' | ||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/yarn | ||
key: ${{ runner.OS }}-yarn-cache-v1-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-cache-v1- | ||
- name: Install | ||
run: yarn install --frozen-lockfile && yarn bootstrap | ||
- uses: chromaui/action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
tags: | ||
- '@lightspeed*' | ||
|
||
name: Publish lerna | ||
jobs: | ||
publish: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
tags: | ||
- '@lightspeed*' | ||
|
||
name: Publish mainline | ||
jobs: | ||
publish: | ||
|
This file contains 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