mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: Fix non Puppeteer releases (#9730)
This commit is contained in:
parent
b5f708cf3f
commit
a9a2e26bea
30
.github/workflows/pre-release.yml
vendored
30
.github/workflows/pre-release.yml
vendored
@ -6,14 +6,40 @@ on:
|
|||||||
- release-please-*
|
- release-please-*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-changes:
|
||||||
|
name: Check which packages changed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changes: ${{ steps.changes.outputs.changes }}
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v3.3.0
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
- name: Detect changed packages
|
||||||
|
uses: dorny/paths-filter@v2.11.1
|
||||||
|
id: changes
|
||||||
|
with:
|
||||||
|
filters: |
|
||||||
|
puppeteer:
|
||||||
|
- '.github/workflows/ci.yml'
|
||||||
|
- 'packages/puppeteer/**'
|
||||||
|
- 'packages/puppeteer-core/**'
|
||||||
|
- 'docker/**'
|
||||||
|
- 'test/**'
|
||||||
|
- 'test-d/**'
|
||||||
|
- 'tools/mochaRunner/**'
|
||||||
|
|
||||||
pre-release:
|
pre-release:
|
||||||
if: "startsWith(github.event.head_commit.message, 'chore: release main')"
|
if: |
|
||||||
|
startsWith(github.event.head_commit.message, 'chore: release main') &&
|
||||||
|
contains(fromJSON(needs.check-changes.outputs.changes), 'puppeteer')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3.0.2
|
uses: actions/checkout@v3.3.0
|
||||||
with:
|
with:
|
||||||
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user