Skip to content

Instantly share code, notes, and snippets.

@cosemansp
Created November 23, 2022 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosemansp/6fe756e7efcfa73c3f05965f34ef6717 to your computer and use it in GitHub Desktop.
Save cosemansp/6fe756e7efcfa73c3f05965f34ef6717 to your computer and use it in GitHub Desktop.
variables:
pnpm_config_cache: $(Pipeline.Workspace)/.pnpm-store
steps:
- task: Cache@2
inputs:
key: 'pnpm | "$(Agent.OS)" | pnpm-lock.yaml'
path: $(pnpm_config_cache)
displayName: Cache pnpm
- script: |
curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@7
pnpm config set store-dir $(pnpm_config_cache)
displayName: "Setup pnpm"
- script: |
pnpm install
pnpm run build
displayName: "pnpm install and build"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment