chore: automate release PR creation

This commit is contained in:
jrandolf 2022-05-18 18:06:58 +02:00 committed by GitHub
parent 7107d2d300
commit 10537d8163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
permission:
contents: read|write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
id: release
run: |
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