Skip to content

Commit df8345b

Browse files
fix: release-drafter permissions
1 parent b2917bc commit df8345b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/create-release.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Reference: https://github.com/release-drafter/release-drafter
2+
name: Create Release
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
create_release:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Set up jq
23+
uses: dcarbone/[email protected]
24+
25+
- name: Get release version from service.yaml
26+
run: |
27+
RELEASE_VERSION=$(jq -r '.version' package.json )
28+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
29+
30+
- uses: release-drafter/release-drafter@v5
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
publish: true
35+
version: ${{ env.RELEASE_VERSION }}
36+
config-name: release-drafter.yaml

0 commit comments

Comments
 (0)