switching over to powershell

This commit is contained in:
Joseph Flinn 2020-12-30 22:58:58 +00:00
parent 3f39d1ccb3
commit 58ed7f5f6a
1 changed files with 6 additions and 3 deletions

View File

@ -17,9 +17,12 @@ steps:
versionSpec: '10.x' versionSpec: '10.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- script: | - task: PoswerShell@v2
packageVersion=(Get-Content -Raw -Path $(System.DefaultWorkingDirectory)\src\package.json | ConvertFrom-Json).version; inputs:
echo "##vso[task.setvariable variable=PACKAGE_VERSION]${packageVersion}" targetType: 'inline'
script: |
$packageVersion = (Get-Content -Raw -Path $(System.DefaultWorkingDirectory)\src\package.json | ConvertFrom-Json).version;
echo "##vso[task.setvariable variable=PACKAGE_VERSION]${packageVersion}"
displayName: 'Setting packageVersion' displayName: 'Setting packageVersion'
- script: | - script: |