@shakil-dev/shakil-stack 2.0.0 → 2.0.1
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,8 +2,8 @@ name: Publish to NPM
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
-
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
7
|
|
|
8
8
|
permissions:
|
|
9
9
|
contents: write
|
|
@@ -26,7 +26,19 @@ jobs:
|
|
|
26
26
|
- name: Install Dependencies
|
|
27
27
|
run: npm ci
|
|
28
28
|
|
|
29
|
+
- name: Set Git Identity
|
|
30
|
+
run: |
|
|
31
|
+
git config --global user.name "github-actions[bot]"
|
|
32
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
33
|
+
git add . # Ensure any changes like package-lock.json are staged
|
|
34
|
+
|
|
35
|
+
- name: Bump Version
|
|
36
|
+
run: npm version patch
|
|
37
|
+
|
|
29
38
|
- name: Publish to NPM
|
|
30
39
|
run: npm publish --access public
|
|
31
40
|
env:
|
|
32
41
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
42
|
+
|
|
43
|
+
- name: Push Version Change to GitHub
|
|
44
|
+
run: git push origin main --tags
|