File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : Checkout repository ποΈ
15
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
+ fetch-tags : true
18
19
19
20
- name : Build ποΈ
20
21
uses : ./.github/actions/build
@@ -27,23 +28,32 @@ jobs:
27
28
- name : Bump version π
28
29
run : pnpm bump-version
29
30
30
- - name : Publish π
31
+ - name : Publish to registry π
31
32
run : pnpm release
32
33
33
- - name : Update release info π
34
+ - name : Sync release info π
35
+ id : sync_release
34
36
run : |
35
37
git config --global user.email "github-actions[bot]@users.noreply.github.com"
36
38
git config --global user.name "github-actions[bot]"
37
39
git config pull.ff true
38
40
git add . && git commit -m "CI: @sliit-foss/automatic-versioning - sync release" || true
39
- git pull --rebase && git push origin
41
+ git tag "v$(node -e "console.log(require('./package.json').version)")" || true
42
+ git pull --rebase && git push origin --tags
43
+ echo "version=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
44
+
45
+ - name : Create release on GitHub π
46
+ uses : ncipollo/release-action@v1
47
+ with :
48
+ generateReleaseNotes : true
49
+ tag : ${{steps.sync_release.outputs.version}}
40
50
41
51
site-release :
42
52
name : Site Release
43
53
runs-on : ubuntu-latest
44
54
steps :
45
55
- name : Checkout repository ποΈ
46
- uses : actions/checkout@v3
56
+ uses : actions/checkout@v4
47
57
48
58
- name : Build ποΈ
49
59
uses : ./.github/actions/build
You canβt perform that action at this time.
0 commit comments