mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
416d56b033
This PR - renames the `utils` folder to `tools` (follows internal practice), - migrates the contents of `scripts` into `tools` and removes scripts.
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Pre-release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release-please-*
|
|
|
|
jobs:
|
|
pre-release:
|
|
if: "startsWith(github.event.head_commit.message, 'chore: release main')"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
- name: Pin dependencies
|
|
run: tools/pin_dependencies.py
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Build
|
|
env:
|
|
PUBLISH: 1
|
|
run: |
|
|
npm run docs
|
|
- name: Version docs
|
|
working-directory: ./website
|
|
run: |
|
|
npm install
|
|
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
|
|
- 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'
|
|
git push --no-verify
|