Skip to content

chore(deps): bump get-func-name from 2.0.0 to 2.0.2 #5041

chore(deps): bump get-func-name from 2.0.0 to 2.0.2

chore(deps): bump get-func-name from 2.0.0 to 2.0.2 #5041

Workflow file for this run

name: Visual testing
on:
workflow_dispatch:
pull_request:
# By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened
types: [labeled, synchronize, opened, reopened, ready_for_review]
branches:
- master
push:
branches:
- master
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
permissions:
contents: read
deployments: read
pull-requests: write
statuses: write
jobs:
build:
runs-on: ubuntu-latest
environment: pull_request_unsafe
if: ( github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'need visual approval') )
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 18
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lock
- name: Publish PR to DS Chromatic
if: github.ref != 'refs/heads/master'
# https://github.com/chromaui/chromatic-cli/issues/739
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/storybook
exitZeroOnChanges: true # Option to prevent the workflow from failing in PR
# Handle monorepos https://www.chromatic.com/docs/monorepos
forceRebuild: true
- name: Publish Master to DS Chromatic
if: github.ref == 'refs/heads/master'
# https://github.com/chromaui/chromatic-cli/issues/739
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/storybook
autoAcceptChanges: true # Option to accept any change for this baseline refresh
forceRebuild: true