Skip to content

Commit af0527b

Browse files
ci(github): set permissions in workflow release-please.yml
1 parent 4c632ec commit af0527b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release-please.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
release-please:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
1013
outputs:
1114
release_created: ${{ steps.release.outputs.release_created }}
1215

@@ -19,11 +22,11 @@ jobs:
1922

2023
publish:
2124
runs-on: ubuntu-latest
25+
needs: release-please
26+
if: ${{ needs.release-please.outputs.release_created }}
2227
permissions:
2328
contents: read
2429
id-token: write
25-
needs: release-please
26-
if: ${{ needs.release-please.outputs.release_created }}
2730

2831
steps:
2932
- name: Checkout repository

0 commit comments

Comments
 (0)