Skip to content

Commit

Permalink
fix: use secret
Browse files Browse the repository at this point in the history
  • Loading branch information
zanussbaum committed Oct 24, 2024
1 parent b4964bb commit 5d15211
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
types:
- completed

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release-please:
if: |
Expand All @@ -27,18 +32,19 @@ jobs:
echo "branch=${{ github.event.workflow_run.head_branch }}" >> $GITHUB_OUTPUT
fi
# Checkout with the correct branch
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ steps.branch-name.outputs.branch }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} # Using PAT for checkout

- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
target-branch: ${{ steps.branch-name.outputs.branch }}
config-file: .github/release-please-config.json
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} # Using PAT for release-please

- uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
Expand Down

0 comments on commit 5d15211

Please sign in to comment.