File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ push :
8
+ branches :
9
+ - release
10
+
11
+ jobs :
12
+ release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0 # Fetch all history for tagging
18
+
19
+ - name : Set Git User
20
+ run : |
21
+ git config --local user.email "[email protected] "
22
+ git config --local user.name "GitHub Action"
23
+
24
+ - name : Install jq
25
+ run : sudo apt-get install jq
26
+
27
+ - name : Get Version from package.json
28
+ id : get_version
29
+ run : |
30
+ VERSION=$(jq -r '.version' package.json)
31
+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
32
+
33
+ - name : Create Tag
34
+ run : |
35
+ git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
36
+ git push origin "v${{ env.VERSION }}"
37
+
38
+ - id : setup-bun
39
+ name : Setup Bun
40
+ uses : oven-sh/setup-bun@v1
41
+ with :
42
+ bun-version : latest
43
+
44
+ - name : Generate Changelog
45
+ run : bunx changelogithub
46
+ env :
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments