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

31 lines
828 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:
2022-06-01 14:13:11 +00:00
if: "startsWith(github.event.head_commit.message, 'chore(main): release')"
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
2022-05-31 13:24:23 +00:00
uses: actions/checkout@v3
2022-06-01 13:49:41 +00:00
with:
2022-06-01 13:59:20 +00:00
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
2022-06-01 13:49:41 +00:00
- name: Commit
run: |
2022-06-01 13:49:41 +00:00
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'
2022-06-01 14:02:06 +00:00
git push --no-verify