Skip to content

Commit

Permalink
ci(build.yml): add pnpm installation to azure pipeline (#966)
Browse files Browse the repository at this point in the history
I used this https://pnpm.io/continuous-integration#azure-pipelines snippet from official site.
  • Loading branch information
chenaski authored Feb 1, 2023
1 parent c1f4142 commit 2e57fd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jobs/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
versionSpec: $(node_version)
- script: git config --global user.email "[email protected]"
- 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
Expand All @@ -42,4 +46,4 @@ jobs:
displayName: Publish packages
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
pathtoPublish: '$(Build.ArtifactStagingDirectory)'

0 comments on commit 2e57fd0

Please sign in to comment.