2022-05-18 16:06:58 +00:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-19 10:51:18 +00:00
|
|
|
permissions:
|
2022-05-19 11:26:42 +00:00
|
|
|
contents: write
|
2022-05-18 16:06:58 +00:00
|
|
|
pull-requests: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-05-19 13:13:16 +00:00
|
|
|
- name: Configure git
|
|
|
|
run: |
|
|
|
|
git config --global user.name 'Puppeteer Bot'
|
|
|
|
git config --global user.email '<puppeteer@chromium.org>'
|
2022-05-18 16:06:58 +00:00
|
|
|
- name: Release
|
|
|
|
id: release
|
|
|
|
run: |
|
2022-05-19 12:39:13 +00:00
|
|
|
npm install
|
2022-05-18 16:06:58 +00:00
|
|
|
npm run release
|
|
|
|
echo ::set-output name=VERSION::$(jq -r .version ./package.json)
|
|
|
|
- name: Create pull request
|
|
|
|
uses: peter-evans/create-pull-request@v4
|
|
|
|
with:
|
|
|
|
branch: releases/v${{ steps.release.outputs.VERSION }}
|
|
|
|
delete-branch: true
|
|
|
|
commit-message: 'chore(release): mark v${{ steps.release.outputs.VERSION }}'
|
|
|
|
title: 'chore(release): mark v${{ steps.release.outputs.VERSION }}'
|
|
|
|
body: ''
|
|
|
|
labels: release
|
|
|
|
reviewers: jrandolf, OrKoN, ergunsh
|