From 2e57fd02a5fd2b2dcf89d3235a6956edaeaf672c Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 1 Feb 2023 06:26:55 +0300 Subject: [PATCH] ci(build.yml): add pnpm installation to azure pipeline (#966) I used this https://pnpm.io/continuous-integration#azure-pipelines snippet from official site. --- jobs/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jobs/build.yml b/jobs/build.yml index 3dfdda13..bdc0cd33 100644 --- a/jobs/build.yml +++ b/jobs/build.yml @@ -24,6 +24,10 @@ jobs: versionSpec: $(node_version) - script: git config --global user.email "example@example.com" - script: git config --global user.name "Example Git User" + - script: | + curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6 + pnpm config set store-dir $(pnpm_config_cache) + displayName: "Setup pnpm" - script: npm install - script: npm run build - script: npm test && npm run write-coverage @@ -42,4 +46,4 @@ jobs: displayName: Publish packages condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)' \ No newline at end of file + pathtoPublish: '$(Build.ArtifactStagingDirectory)'