Hopefully fix issues running CI on remote forks
This commit is contained in:
6
.github/workflows/chromatic.yml
vendored
6
.github/workflows/chromatic.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
push:
|
||||
paths:
|
||||
- web/**
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
paths:
|
||||
- web/**
|
||||
|
||||
@@ -24,7 +24,11 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Check out code
|
||||
with:
|
||||
# Make sure the actual branch is checked out when running on pull requests
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- run: npm install --include=dev --force
|
||||
# 👇 Adds Chromatic as a step in the workflow
|
||||
- name: Publish to Chromatic
|
||||
|
||||
Reference in New Issue
Block a user