From 47589c557396e817a3f5a946f23984680be60948 Mon Sep 17 00:00:00 2001 From: yazninja <71800112+yazninja@users.noreply.github.com> Date: Wed, 10 May 2023 17:52:44 +0300 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 14cfe73d..de4034cd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -31,17 +31,15 @@ jobs: versionSource: "fromFile" versionFilePath: ".nvmrc" - - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - - task: Cache@2 - inputs: - key: 'yarn | "$(Agent.OS)" | yarn.lock' - path: $(YARN_CONFIG_CACHE) - displayName: Cache yarn + # - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: + # - task: Cache@2 + # inputs: + # key: 'yarn | "$(Agent.OS)" | yarn.lock' + # path: $(YARN_CONFIG_CACHE) + # displayName: Cache yarn - script: | - yarn --version yarn config unset configCache - # yarn set version stable displayName: "Setup yarn v3" # Install dependencies (immutable for non-PR builds) @@ -87,14 +85,15 @@ jobs: versionSource: "fromFile" versionFilePath: ".nvmrc" - - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - - task: Cache@2 - inputs: - key: 'yarn | "$(Agent.OS)" | yarn.lock' - path: $(YARN_CONFIG_CACHE) - displayName: Cache yarn + # - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: + # - task: Cache@2 + # inputs: + # key: 'yarn | "$(Agent.OS)" | yarn.lock' + # path: $(YARN_CONFIG_CACHE) + # displayName: Cache yarn - script: | + yarn config unset configCache yarn set version from sources displayName: "Setup yarn"