Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
yazninja 2023-05-10 18:07:43 +03:00
parent 5e05f01d4e
commit 03fbca0e36

View file

@ -31,18 +31,17 @@ jobs:
versionSource: "fromFile" versionSource: "fromFile"
versionFilePath: ".nvmrc" versionFilePath: ".nvmrc"
# - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
# - task: Cache@2 - task: Cache@2
# inputs: inputs:
# key: 'yarn | "$(Agent.OS)" | yarn.lock' key: 'yarn | "$(Agent.OS)" | yarn.lock'
# path: $(YARN_CONFIG_CACHE) path: $(YARN_CACHE_FOLDER)
# displayName: Cache yarn displayName: Cache yarn
- script: | - script: |
yarn config -v yarn set version from sources
yarn config unset configCache displayName: "Setup yarn"
displayName: "Setup yarn v3"
# Install dependencies (immutable for non-PR builds) # Install dependencies (immutable for non-PR builds)
- ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
- script: yarn install --immutable-cache - script: yarn install --immutable-cache
@ -86,15 +85,14 @@ jobs:
versionSource: "fromFile" versionSource: "fromFile"
versionFilePath: ".nvmrc" versionFilePath: ".nvmrc"
# - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}: - ${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
# - task: Cache@2 - task: Cache@2
# inputs: inputs:
# key: 'yarn | "$(Agent.OS)" | yarn.lock' key: 'yarn | "$(Agent.OS)" | yarn.lock'
# path: $(YARN_CONFIG_CACHE) path: $(YARN_CACHE_FOLDER)
# displayName: Cache yarn displayName: Cache yarn
- script: | - script: |
yarn config unset configCache
yarn set version from sources yarn set version from sources
displayName: "Setup yarn" displayName: "Setup yarn"