From 90244ddf89ce553c13e90da7c539f7ddadb6f47c Mon Sep 17 00:00:00 2001 From: Falk Neumann Date: Thu, 23 Feb 2023 17:45:45 +0100 Subject: [PATCH] ci(release): repair release action Pushing to protected branches is not possible anymore without certain settings. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7998fa19..ae9336af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,9 @@ jobs: steps: - uses: actions/checkout@v3 with: + ref: ${{ github.event.ref }} fetch-depth: 0 - persist-credentials: false + token: ${{ secrets.GH_TOKEN }} - uses: actions/setup-node@v3 with: node-version: 14 @@ -18,6 +19,11 @@ jobs: - name: Install dependencies run: yarn install + + - name: Configure git + run: | + git config user.name "${GITHUB_ACTOR}" + git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - name: Release on NPM env: