automation-lib 5.6.4 → 5.6.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/hs-commit.bat +0 -51
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "automation-lib",
3
- "version": "5.6.4",
3
+ "version": "5.6.7",
4
4
  "description": "Common features and type of applications auto",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
package/hs-commit.bat DELETED
@@ -1,51 +0,0 @@
1
- @echo off
2
-
3
- :: Add all changes to git
4
- git add .
5
-
6
- :: Commit changes with a message
7
- echo Committing changes...
8
- set /p commit_message="Enter commit message: "
9
- git commit -m "%commit_message%"
10
- sleep 2
11
-
12
- :: Push changes to the 'main' branch of the 'cp' remote
13
- git pull hs main
14
-
15
- :: Read the current version from package.json
16
- for /f "tokens=2 delims=:, " %%i in ('findstr "version" package.json') do set currentVersion=%%i
17
-
18
- :: Remove quotes from the version string
19
- set currentVersion=%currentVersion:"=%
20
-
21
- :: Split version into its components
22
- for /f "tokens=1,2,3 delims=." %%a in ("%currentVersion%") do (
23
- set major=%%a
24
- set minor=%%b
25
- set patch=%%c
26
- )
27
-
28
- :: Increment the patch version
29
- set /a patch+=1
30
-
31
- :: Create the new version string
32
- set newVersion=%major%.%minor%.%patch%
33
-
34
- :: Update the version in package.json
35
- powershell -Command "(Get-Content package.json) -replace '\"version\": \"%currentVersion%\"', '\"version\": \"%newVersion%\"' | Set-Content package.json"
36
-
37
- :: Display the new version
38
- echo New version: %newVersion%
39
-
40
- :: Run npm publish using call
41
- call npm run pub
42
-
43
- git add .
44
- sleep 1
45
- git commit -m "%commit_message%"
46
- sleep 2
47
-
48
- git pull hs main
49
-
50
-
51
-