puppeteer/.github/workflows/pre-release.yml

34 lines
930 B
YAML
Raw Normal View History

2022-05-31 12:43:46 +00:00
name: Pre-release
on:
push:
2022-05-31 12:57:47 +00:00
branches:
- release-please-*
jobs:
2022-05-31 12:55:46 +00:00
pre-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
2022-05-31 13:24:23 +00:00
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Build
run: |
node utils/generate_version_file.js
IS_RELEASE=1 npm run doc
2022-06-01 11:16:44 +00:00
- name: Get last commit message
id: last-commit-message
run: |
2022-06-01 11:16:44 +00:00
echo "::set-output name=msg::$(git log -1 --pretty=%s)"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_user_name: 55107282+release-please[bot]@users.noreply.github.com
commit_user_email: release-please[bot]
commit_message: ${{ steps.last-commit-message.outputs.msg }}
commit_options: '--amend --no-edit'
push_options: '--force'
skip_fetch: true