@kirixvelu/second 3.1.0 → 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.
@@ -0,0 +1,20 @@
1
+ # name: Publish Release
2
+ on:
3
+ push:
4
+ tags:
5
+ - "v*"
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ permissions:
10
+ contents: write
11
+ pull-requests: write
12
+ issues: write
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - name: Create a Release
16
+ uses: elgohr/Github-Release-Action@v5
17
+ env:
18
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
+ with:
20
+ title: Project Second
@@ -1,20 +1,79 @@
1
- name: Publish Release
1
+ name: release
2
+
2
3
  on:
3
4
  push:
4
- tags:
5
- - "v*"
5
+ paths-ignore:
6
+ - "README.md"
7
+ - ".github/**"
8
+ branches:
9
+ - main
10
+
11
+ pull_request:
12
+ paths-ignore:
13
+ - "README.md"
14
+ - ".github/**"
15
+ branches:
16
+ - main
17
+
6
18
  jobs:
7
- build:
19
+ release:
8
20
  runs-on: ubuntu-latest
9
- permissions:
10
- contents: write
11
- pull-requests: write
12
- issues: write
13
21
  steps:
14
- - uses: actions/checkout@v3
15
- - name: Create a Release
16
- uses: elgohr/Github-Release-Action@v5
17
- env:
18
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
+ - name: Checkout Repo
23
+ uses: actions/checkout@v3
24
+
25
+ - name: Get bump version
26
+ id: bump_label
27
+ uses: SamirMarin/get-labels-action@v0
19
28
  with:
20
- title: Project Second
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
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
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 }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ #### 3.1.2 (2026-02-08)
2
+
3
+ #### 3.1.1 (2026-02-08)
4
+
5
+ ##### New Features
6
+
7
+ * another git release action ([ea9f14f5](https://github.com/kirixvelu/second/commit/ea9f14f59b6e48f974aa445f13ea73326b402595))
8
+
1
9
  ### 3.1.0 (2026-02-08)
2
10
 
3
11
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirixvelu/second",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "publishConfig": {