[Infrastructure] get-version fails on our CI because node is not installed by the CI pipeline. #53091
Labels
area-infrastructure
Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
https://dev.azure.com/dnceng/internal/_build/results?buildId=2341287&view=results
The issue is that nodejs is not installed, so when we run npm run get-version, the command fails. We need to make sure that node is installed and
npm ci
is run or find an alternative way to collect the package versions for npm packages.We can either do this in node, or get all the
package.json
files in the build and read them to get the version.As a workaround, we simply flow the version from the build system as in e6be3e9 which is ok because we aren't producing individual versions for our packages, but it risks not being correct now or in the future.
The text was updated successfully, but these errors were encountered: