@kirixvelu/second 3.1.1 → 3.1.2

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.
@@ -2,20 +2,25 @@ name: release
2
2
 
3
3
  on:
4
4
  push:
5
+ paths-ignore:
6
+ - "README.md"
7
+ - ".github/**"
5
8
  branches:
6
9
  - main
10
+
7
11
  pull_request:
12
+ paths-ignore:
13
+ - "README.md"
14
+ - ".github/**"
8
15
  branches:
9
16
  - main
10
17
 
11
- permissions:
12
- contents: write
13
18
  jobs:
14
19
  release:
15
20
  runs-on: ubuntu-latest
16
21
  steps:
17
- - name: Checkout
18
- uses: actions/checkout@v5
22
+ - name: Checkout Repo
23
+ uses: actions/checkout@v3
19
24
 
20
25
  - name: Get bump version
21
26
  id: bump_label
@@ -26,18 +31,48 @@ jobs:
26
31
  label_value_order: "patch,minor,major,ignore"
27
32
  default_label_value: patch
28
33
 
29
- - name: create tag to release
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
30
43
  id: tag_version
31
44
  uses: mathieudutour/github-tag-action@v6.1
32
45
  with:
33
46
  github_token: ${{ secrets.GITHUB_TOKEN }}
34
47
  default_bump: ${{ steps.bump_label.outputs.label_value }}
35
48
  dry_run: ${{ github.event_name == 'pull_request' }}
36
- tag_prefix: v
49
+ tag_prefix: ${{ steps.tag_prefix.outputs.label_value }}
37
50
 
38
- - name: create release
39
- uses: ncipollo/release-action@v1
51
+ - name: Create major version tag value
52
+ id: major_tag_version
53
+ run: |
54
+ major_version=$(echo ${{ steps.tag_version.outputs.new_tag }} | cut -d "." -f 1)
55
+ echo "value=${major_version}" >> $GITHUB_OUTPUT
56
+
57
+ - name: Override or push major tag
40
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 != '' }}
41
76
  with:
42
77
  tag: ${{ steps.tag_version.outputs.new_tag }}
43
78
  name: Release ${{ steps.tag_version.outputs.new_tag }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ #### 3.1.2 (2026-02-08)
2
+
1
3
  #### 3.1.1 (2026-02-08)
2
4
 
3
5
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirixvelu/second",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {