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 a6290dc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
name: Release new version
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.bump_verson.outputs.tag }}
new_tag: ${{ steps.bump_version.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
- id: bump_verson
run: npm version ${{ inputs.version }} >> "$GITHUB_OUTPUT"
- run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github"
- id: bump_version
run: echo "$(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 a6290dc

Please sign in to comment.