Skip to content

Commit

Permalink
chore: update release-please config (#852)
Browse files Browse the repository at this point in the history
- Use new repository for the action
- Use nodejs-github-bot's PAT
- Restrict permissions of `GITHUB_TOKEN`
  • Loading branch information
targos committed Sep 1, 2024
1 parent 7734954 commit b4842d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ on:
branches:
- main

permissions:
contents: read

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
npm-publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
Expand Down

0 comments on commit b4842d3

Please sign in to comment.