Skip to content

Commit 8387842

Browse files
chore: update frontend deps, regenerate bundles, and add cache-busting, pin CI to ubuntu-22.04 and publish artifact
1 parent aaaad64 commit 8387842

File tree

7 files changed

+3562
-11490
lines changed

7 files changed

+3562
-11490
lines changed

azure-pipelines.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ resources:
88
services:
99
mongo: mongo
1010

11+
pool:
12+
vmImage: 'ubuntu-22.04'
13+
1114
variables:
1215
buildConfiguration: 'Release'
1316

@@ -57,7 +60,12 @@ steps:
5760
inputs:
5861
command: publish
5962
publishWebProjects: True
60-
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)'
63+
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
6164
zipAfterPublish: True
6265

63-
- task: PublishPipelineArtifact@1
66+
- task: PublishPipelineArtifact@1
67+
displayName: 'Publish artifact'
68+
inputs:
69+
targetPath: '$(Build.ArtifactStagingDirectory)'
70+
artifact: 'drop'
71+
publishLocation: 'pipeline'

src/Plugins/Theme.Modern/Views/Modern/Shared/Head.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
2-
<script asp-location="Head" src="/bundles/app.runtime.bundle.js"></script>
3-
<script asp-location="Head" src="/bundles/chunk-vendors.runtime.bundle.js"></script>
4-
<link asp-src="/bundles/libs.css" rel="stylesheet">
2+
<script asp-location="Head" src="/bundles/app.runtime.bundle.js" asp-append-version="true"></script>
3+
<script asp-location="Head" src="/bundles/chunk-vendors.runtime.bundle.js" asp-append-version="true"></script>
4+
<link asp-src="/bundles/libs.css" rel="stylesheet" asp-append-version="true">
55

66
<link rel="stylesheet" type="text/css" asp-src="/assets/custom/style.css">
77

src/Web/Grand.Web/Views/Shared/Partials/Head.cshtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
@{
44
var supportRtl = contextAccessor.WorkContext.WorkingLanguage.Rtl;
55

6-
<script asp-location="Head" src="/bundles/app.runtime.bundle.js"></script>
7-
<script asp-location="Head" src="/bundles/chunk-vendors.runtime.bundle.js"></script>
8-
<link asp-src="/bundles/libs.css" rel="stylesheet">
6+
<script asp-location="Head" src="/bundles/app.runtime.bundle.js" asp-append-version="true"></script>
7+
<script asp-location="Head" src="/bundles/chunk-vendors.runtime.bundle.js" asp-append-version="true"></script>
8+
<link asp-src="/bundles/libs.css" rel="stylesheet" asp-append-version="true">
99

1010
<link rel="stylesheet" type="text/css" asp-src="/assets/custom/style.css">
1111

@@ -32,11 +32,11 @@
3232
<environment include="Production">
3333
@if (supportRtl)
3434
{
35-
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.rtl.min.css">
35+
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.rtl.min.css" asp-append-version="true">
3636
}
3737
else
3838
{
39-
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.min.css">
39+
<link rel="stylesheet" type="text/css" asp-src="/bundles/style.min.css" asp-append-version="true">
4040
}
4141
</environment>
4242

0 commit comments

Comments
 (0)