Skip to content

Commit

Permalink
Authenticate for github cli
Browse files Browse the repository at this point in the history
  • Loading branch information
EvenAR committed Jun 11, 2024
1 parent 81f8c29 commit 420c226
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,12 +36,17 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github
- id: bump_verson
run: npm version ${{ inputs.version }} >> "$GITHUB_OUTPUT"
- run: 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

0 comments on commit 420c226

Please sign in to comment.