From b8915ec58911d6b6aca32ceb37de120ae66f6c90 Mon Sep 17 00:00:00 2001 From: ethriel3695 Date: Wed, 17 Jul 2024 09:16:27 -0600 Subject: [PATCH] update yaml for pnpm --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f5e92cb..91e5580 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,6 +15,15 @@ steps: - task: UseNode@1 inputs: version: '18.x' +- 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/v9.4.0.js | node - add --global pnpm@9.4.0 + pnpm config set store-dir $(pnpm_config_cache) + displayName: "Setup pnpm" - script: pnpm install - script: pnpm build-storybook