File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 11
11
12
12
permissions :
13
13
packages : write
14
+ contents : write
14
15
15
16
jobs :
17
+ version_update :
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - name : Checkout GitHub Action
21
+ uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - uses : actions4git/setup-git@v1
26
+
27
+ - name : Update version in package.json
28
+ id : version
29
+ run : |
30
+ git checkout -b temp-version-update
31
+ version=$(npm version from-git --no-git-tag-version)
32
+ cd api
33
+ npm version from-git --no-git-tag-version
34
+ git add package.json
35
+ git commit --signoff --message $version
36
+ git checkout main
37
+ git merge temp-version-update
38
+ git tag --force $version
39
+ git push origin main -f --tags
40
+
16
41
push_to_ghcr :
17
42
runs-on : ubuntu-latest
43
+ needs : version_update
18
44
steps :
19
45
- name : Checkout GitHub Action
20
46
uses : actions/checkout@v4
52
78
53
79
push_proxy_to_ghcr :
54
80
runs-on : ubuntu-latest
81
+ needs : version_update
55
82
steps :
56
83
- name : Checkout GitHub Action
57
84
uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments