-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path-version.bat
More file actions
23 lines (23 loc) · 921 Bytes
/
-version.bat
File metadata and controls
23 lines (23 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
::setlocal enabledelayedexpansion
::setlocal enableextensions
::set /p "PARAM=test2:"
::set CONTENT=%~1
::echo %CONTENT%
::IF "%CONTENT%" == "" set CONTENT="New Version"
::echo %CONTENT%
npm version patch && node -pe "require('./package.json').version" > .apicra/variable/VERSION.txt
::&& TYPE VERSION.txt | MORE /P > VERSION.txt
::set message=New Version of System v%VERSION%
::git tag -a v%VERSION% -m "%message%"
::&& echo %CONTENT% > "Ticket\v%VERSION%.md"
::npm version patch > VERSION.txt && set /p VERSION= < VERSION.txt && echo %CONTENT% > "Ticket\v%VERSION%.md"
::set DEFAULT=domyslny
:: echo %VERSION% &&
::pause
::endlocal
:: && echo This is a sample text file > "Ticket\%VERSION%.md"
::set VERSION="$(npm view js-func-github version)"
::for /f %%i in ('dir /b /od Ticket\*.md') do @set filename=%%i
::set /p ticket=<Ticket\%filename%
::for /f "delims==" %%a in (Ticket\%filename%) do set ticket=%%a