diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml index 35485eb8..465e2aac 100644 --- a/.ci/azure-pipelines.yml +++ b/.ci/azure-pipelines.yml @@ -42,7 +42,9 @@ jobs: displayName: 'Install Dependencies' condition: ne(variables.CACHE_RESTORED, 'true') - - script: 'sh ./scripts/updateversion.sh' + - script: | + package_json="$(cat package.json | jq '.version = .version + "-'$BUILD_BUILDNUMBER'"')" + echo "$package_json" > package.json displayName: 'Update version in package.json' - script: 'npm run build:development' diff --git a/scripts/updateversion.sh b/scripts/updateversion.sh deleted file mode 100644 index 3143f2c6..00000000 --- a/scripts/updateversion.sh +++ /dev/null @@ -1,2 +0,0 @@ -package_json="$(cat package.json | jq '.version = .version + "-'$BUILD_BUILDNUMBER'"')" -echo "$package_json" > package.json