mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
7a40845581
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
name: Pre-release
|
|
|
|
permissions: read-all
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release-please-*
|
|
|
|
jobs:
|
|
check-changes:
|
|
uses: ./.github/workflows/changed-packages.yml
|
|
|
|
pre-release:
|
|
if: |
|
|
startsWith(github.event.head_commit.message, 'chore: release main') &&
|
|
contains(fromJSON(needs.check-changes.outputs.changes), 'puppeteer')
|
|
needs: check-changes
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
|
|
with:
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Build all packages
|
|
env:
|
|
PUBLISH: 1
|
|
run: |
|
|
npm run build
|
|
- name: Build docs
|
|
env:
|
|
PUBLISH: 1
|
|
run: |
|
|
npm run docs
|
|
- name: Version docs
|
|
working-directory: ./website
|
|
run: |
|
|
npm ci
|
|
npm run docusaurus docs:version $(jq -r .version ../packages/puppeteer/package.json)
|
|
npm run archive
|
|
- name: Re-build docs after versioning
|
|
env:
|
|
PUBLISH: 1
|
|
run: |
|
|
npm run docs
|
|
- name: Format
|
|
run: npm run format
|
|
# Release-please does not update the package-lock
|
|
- name: Install to refresh package-lock
|
|
run: npm install
|
|
- name: Commit
|
|
run: |
|
|
git config --global user.name 'release-please[bot]'
|
|
git config --global user.email '55107282+release-please[bot]@users.noreply.github.com'
|
|
git add .
|
|
git commit -m 'chore: generate versioned docs' --no-verify
|
|
git push
|