mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
31 lines
828 B
YAML
31 lines
828 B
YAML
name: Pre-release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release-please-*
|
|
|
|
jobs:
|
|
pre-release:
|
|
if: "!startsWith(github.event.head_commit.message, 'chore: freeze version on docs')"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ssh-key: "${{ secrets.SSH_PRIVATE_KEY }}"
|
|
- name: Install dependencies
|
|
run: npm install
|
|
- name: Build
|
|
run: |
|
|
node utils/generate_version_file.js
|
|
IS_RELEASE=1 npm run doc
|
|
- 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 commit -am 'chore: freeze version on docs'
|
|
git push
|