Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Yarn configuration for CI #4494

Merged
merged 2 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Build/BuildScripts/AEModule.build
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<Target Name="RunYarnWorkspace">
<Message Importance="high" Text="Running Yarn for $(WorkingDirectory)" />

<Yarn Command="install" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0" />
<Yarn Command="install --frozen-lockfile" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0" />
<Yarn Command="build" WorkingDirectory="$(WorkingDirectory)" IgnoreExitCode="false" Condition="$(WorkingDirectory.Length) > 0" />
</Target>
</Project>
9 changes: 9 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ pool:
variables:
- name: "Build.ArtifactStagingDirectory"
value: "Artifacts/"
- name: "YARN_CACHE_FOLDER"
value: "$(Pipeline.Workspace)/.yarn"

parameters:
- name: "CakeTarget"
Expand Down Expand Up @@ -44,6 +46,13 @@ pr:

steps:

- task: Cache@2
displayName: Cache Yarn packages
inputs:
key: 'yarn | "$(Agent.OS)" | yarn.lock'
restoreKeys: 'yarn | "$(Agent.OS)"'
path: $(YARN_CACHE_FOLDER)

- task: PowerShell@2
displayName: 'Run DNN Update Versions'
inputs:
Expand Down