From f52a46b039910665ed8f730d9bd81dce3082c2b4 Mon Sep 17 00:00:00 2001 From: Even Rognlien Date: Tue, 11 Jun 2024 16:45:33 +0200 Subject: [PATCH] Authenticate for github cli --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b802af..f5496f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,8 @@ jobs: runs-on: ubuntu-latest outputs: new_tag: ${{ steps.bump_verson.outputs.tag }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -36,10 +38,15 @@ jobs: - run: npm run build - id: bump_verson run: npm version ${{ inputs.version }} >> "$GITHUB_OUTPUT" - - run: git push --follow-tags + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + git push --follow-tags github_release: name: Create a release runs-on: ubuntu-latest needs: release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - run: gh release create ${{ needs.release.outputs.new_tag }} --draft --verify-tag