From 9ffdc62024286d5fbd86a41ae0ade6d875cd4273 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b802af..fced6bd 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 @@ -34,6 +36,9 @@ jobs: registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run build + - run: | + git config user.name github-actions + git config user.email github-actions@github.com - id: bump_verson run: npm version ${{ inputs.version }} >> "$GITHUB_OUTPUT" - run: git push --follow-tags @@ -41,5 +46,7 @@ jobs: 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