Skip to content

Commit caac77a

Browse files
committed
Updated commands
1 parent 8e79799 commit caac77a

14 files changed

+67
-11
lines changed

Commands/NPM--AddUser.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd ..\Assets\_PackageRoot
2+
npm adduser

Commands/NPM--CopyREADME.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
xcopy ..\README.md ..\Assets\_PackageRoot\README.md* /Y
2+
xcopy ..\README.md ..\Assets\_PackageRoot\Documentation~\README.md* /Y
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
call npm --prefix ..\Assets\_PackageRoot update
2+
del /f ..\Assets\_PackageRoot\package-lock.*
3+
pause

Commands/NPM--VersionMajor.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd ..\Assets\_PackageRoot
2+
npm version major
3+
pause

Commands/NPM--VersionMinor.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd ..\Assets\_PackageRoot
2+
npm version minor
3+
pause

Commands/NPM--VersionPatch.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd ..\Assets\_PackageRoot
2+
npm version patch
3+
pause
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cd ..\Assets\_PackageRoot
2+
@echo off
3+
echo ----------------------------------------------------
4+
echo Executing "npm pkg get version"
5+
FOR /F "tokens=* USEBACKQ" %%F IN (`npm pkg get version`) DO (
6+
SET RawVersion=%%F
7+
)
8+
echo Version of current package is extracted: %RawVersion%
9+
SET CleanVersion=%RawVersion:~1,-1%
10+
echo Current version: %CleanVersion%
11+
12+
git push -u origin HEAD
13+
14+
echo ----------------------------------------------------
15+
cd ..\..\
16+
echo Creating GitHub release with tag=%CleanVersion%
17+
@echo on
18+
gh release create %CleanVersion% --generate-notes --title %CleanVersion%
19+
gh release view %CleanVersion% --web
20+
@echo off
21+
echo ----------------------------------------------------
22+
23+
pause

Commands/[!!!]--NPM--Publish.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
xcopy ..\README.md ..\Assets\_PackageRoot\README.md* /Y
2+
xcopy ..\README.md ..\Assets\_PackageRoot\Documentation~\README.md* /Y
3+
cd ..\Assets\_PackageRoot
4+
npm publish
5+
pause
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cd ..\Assets\_PackageRoot
2+
@echo off
3+
echo ----------------------------------------------------
4+
echo Executing "npm pkg get version"
5+
FOR /F "tokens=* USEBACKQ" %%F IN (`npm pkg get version`) DO (
6+
SET RawVersion=%%F
7+
)
8+
echo Version of current package is extracted: %RawVersion%
9+
SET CleanVersion=%RawVersion:~1,-1%
10+
echo Current version: %CleanVersion%
11+
12+
git push -u origin HEAD
13+
14+
echo ----------------------------------------------------
15+
cd ..\..\
16+
echo Creating GitHub release with tag=%CleanVersion%
17+
@echo on
18+
gh release create %CleanVersion% --draft --generate-notes --title %CleanVersion%
19+
gh repo view --web
20+
@echo off
21+
echo ----------------------------------------------------
22+
23+
pause

gitSubTreePushToUPM.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)