Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
ae3683425a
commit
47589c5573
1 changed files with 13 additions and 14 deletions
|
@ -31,17 +31,15 @@ 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_CONFIG_CACHE)
|
||||||
displayName: Cache yarn
|
# displayName: Cache yarn
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
yarn --version
|
|
||||||
yarn config unset configCache
|
yarn config unset configCache
|
||||||
# yarn set version stable
|
|
||||||
displayName: "Setup yarn v3"
|
displayName: "Setup yarn v3"
|
||||||
|
|
||||||
# Install dependencies (immutable for non-PR builds)
|
# Install dependencies (immutable for non-PR builds)
|
||||||
|
@ -87,14 +85,15 @@ 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_CONFIG_CACHE)
|
||||||
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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue