FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
msgraph-sdk-javascript/scripts/src/GetPackageVersion.ps1 at dev · microsoftgraph/msgraph-sdk-javascript · GitHub
microsoftgraph
msgraph-sdk-javascript
Repository navigation
Code
Issues
79
(79)
Pull requests
35
(35)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
msgraph-sdk-javascript
/
scripts
/
src
/
GetPackageVersion.ps1
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (9 loc) · 504 Bytes
Breadcrumbs
msgraph-sdk-javascript
/
scripts
/
src
/
GetPackageVersion.ps1
Copy path
File metadata and controls
13 lines (9 loc) · 504 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
Param
(
[
string
]
$gitRepoRoot
)
Write-Host
"
Get package version and update it in the global varaible:
"
-
ForegroundColor Magenta;
$pathToPackageJson
=
"
$
(
$gitRepoRoot
)
/package.json
"
;
$packageJson
=
Get-Content
-
Path
$pathToPackageJson
-
Raw
|
ConvertFrom-Json
;
Write-Host
"
Package version is '
$
(
$packageJson
.version
)
'
"
-
ForegroundColor Green;
Write-Host
"
##vso[task.setvariable variable=VERSION_STRING]
$
(
$packageJson
.version
)
"
;
Write-Host
"
Updated version in global variable
"
-
ForegroundColor Green;
Back
|
FazBrowse Home
|
New Git URL