From 10537d81639b940c4777d94eeba6a7acaca65545 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Wed, 18 May 2022 18:06:58 +0200 Subject: [PATCH] chore: automate release PR creation --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..bdd5995d --- /dev/null +++ b/.github/workflows/release.yml @@ -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