2022-05-31 12:43:46 +00:00
|
|
|
name: Pre-release
|
2022-05-31 12:41:22 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-05-31 12:57:47 +00:00
|
|
|
branches:
|
2022-05-31 12:41:22 +00:00
|
|
|
- release-please-*
|
|
|
|
|
|
|
|
jobs:
|
2022-05-31 12:55:46 +00:00
|
|
|
pre-release:
|
2022-05-31 12:41:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-05-31 13:24:23 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-05-31 12:41:22 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
node utils/generate_version_file.js
|
2022-05-31 13:38:20 +00:00
|
|
|
IS_RELEASE=1 npm run doc
|
2022-06-01 11:16:44 +00:00
|
|
|
- name: Get last commit message
|
|
|
|
id: last-commit-message
|
2022-05-31 12:41:22 +00:00
|
|
|
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
|