From 93daa08ab14ad6f4aa8c02e5b0c98aa8ec8544b6 Mon Sep 17 00:00:00 2001 From: Wilhelm Vold Date: Thu, 23 May 2024 13:55:06 +0200 Subject: [PATCH] fix(workflow): added release-please --- .github/workflows/release-please.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..ff5053f --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,31 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: Release please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.PEPM_CI_APP_ID }} + private-key: ${{ secrets.PEPM_CI_APP_SECRET }} + + - uses: googleapis/release-please-action@v4 + with: + # this assumes that you have created a personal access token + # (PAT) and configured it as a GitHub action secret named + # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important). + token: ${{ steps.generate-token.outputs.token }} + # this is a built-in strategy in release-please, see "Action Inputs" + # for more options + release-type: node \ No newline at end of file