Skip to content

Commit

Permalink
chore: automate release PR creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed May 18, 2022
1 parent 7107d2d commit 10537d8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 10537d8

Please sign in to comment.