We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2917bc commit df8345bCopy full SHA for df8345b
.github/workflows/create-release.yaml
@@ -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
34
+ publish: true
35
+ version: ${{ env.RELEASE_VERSION }}
36
+ config-name: release-drafter.yaml
0 commit comments