Skip to content

Commit 3cd5cb7

Browse files
authored
fix(ci): fall back to github token for release please (#43)
1 parent 0b068b9 commit 3cd5cb7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
branches:
66
- main
77

8-
permissions: {}
8+
permissions:
9+
contents: write
10+
pull-requests: write
911

1012
jobs:
1113
release-please:
@@ -17,14 +19,14 @@ jobs:
1719
id: release
1820
uses: googleapis/release-please-action@v4
1921
with:
20-
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
22+
token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
2123

2224
- name: Checkout
2325
if: ${{ steps.release.outputs.release_created }}
2426
uses: actions/checkout@v6
2527
with:
2628
fetch-depth: 0
27-
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
29+
token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
2830

2931
- name: Update floating major tag
3032
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)