@kirixvelu/second 3.1.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,79 +1,24 @@
|
|
|
1
|
-
name: release
|
|
1
|
+
name: Create release
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
- ".github/**"
|
|
8
|
-
branches:
|
|
9
|
-
- main
|
|
5
|
+
tags:
|
|
6
|
+
- v*
|
|
10
7
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- "README.md"
|
|
14
|
-
- ".github/**"
|
|
15
|
-
branches:
|
|
16
|
-
- main
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
17
10
|
|
|
18
11
|
jobs:
|
|
19
12
|
release:
|
|
13
|
+
name: Release pushed tag
|
|
20
14
|
runs-on: ubuntu-latest
|
|
21
15
|
steps:
|
|
22
|
-
- name:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
id: bump_label
|
|
27
|
-
uses: SamirMarin/get-labels-action@v0
|
|
28
|
-
with:
|
|
29
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
-
label_key: bump
|
|
31
|
-
label_value_order: "patch,minor,major,ignore"
|
|
32
|
-
default_label_value: patch
|
|
33
|
-
|
|
34
|
-
- name: Get tag prefix
|
|
35
|
-
id: tag_prefix
|
|
36
|
-
uses: SamirMarin/get-labels-action@v0
|
|
37
|
-
with:
|
|
38
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
39
|
-
label_key: version
|
|
40
|
-
default_label_value: v
|
|
41
|
-
|
|
42
|
-
- name: Bump version and push tag
|
|
43
|
-
id: tag_version
|
|
44
|
-
uses: mathieudutour/github-tag-action@v6.1
|
|
45
|
-
with:
|
|
46
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
47
|
-
default_bump: ${{ steps.bump_label.outputs.label_value }}
|
|
48
|
-
dry_run: ${{ github.event_name == 'pull_request' }}
|
|
49
|
-
tag_prefix: ${{ steps.tag_prefix.outputs.label_value }}
|
|
50
|
-
|
|
51
|
-
- name: Create major version tag value
|
|
52
|
-
id: major_tag_version
|
|
16
|
+
- name: Create release
|
|
17
|
+
env:
|
|
18
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
19
|
+
tag: ${{ github.ref_name }}
|
|
53
20
|
run: |
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if: ${{ github.event_name != 'pull_request' }}
|
|
59
|
-
uses: rickstaa/action-create-tag@v1
|
|
60
|
-
with:
|
|
61
|
-
tag: ${{ steps.major_tag_version.outputs.value }}
|
|
62
|
-
force_push_tag: true
|
|
63
|
-
|
|
64
|
-
- name: Comment on PR
|
|
65
|
-
if: ${{ github.event_name == 'pull_request' && steps.tag_version.outputs.new_tag != '' }}
|
|
66
|
-
uses: peter-evans/create-or-update-comment@v3
|
|
67
|
-
with:
|
|
68
|
-
issue-number: ${{ github.event.pull_request.number }}
|
|
69
|
-
body: |
|
|
70
|
-
**The current major Release:** 🚀 ${{ steps.major_tag_version.outputs.value }}
|
|
71
|
-
**Next Release:** 🚀 ${{ steps.tag_version.outputs.new_tag }}
|
|
72
|
-
|
|
73
|
-
- name: Create a GitHub release
|
|
74
|
-
uses: ncipollo/release-action@v1
|
|
75
|
-
if: ${{ github.event_name != 'pull_request' && steps.tag_version.outputs.new_tag != '' }}
|
|
76
|
-
with:
|
|
77
|
-
tag: ${{ steps.tag_version.outputs.new_tag }}
|
|
78
|
-
name: Release ${{ steps.tag_version.outputs.new_tag }}
|
|
79
|
-
body: ${{ steps.tag_version.outputs.changelog }}
|
|
21
|
+
gh release create "$tag" \
|
|
22
|
+
--repo="$GITHUB_REPOSITORY" \
|
|
23
|
+
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
|
|
24
|
+
--generate-notes
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
File without changes
|