fix: ci docker build & cache key & --frozen-lockfile

This commit is contained in:
2023-10-27 12:22:57 +02:00
parent 9a5b467ab0
commit 19b002ff24
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -20,11 +20,11 @@ jobs:
- name: Cache NPM packages
uses: actions/cache@v3
with:
key: npm-${{ hashFiles('./frontend/yarn.lock') }}
key: npm-${{ hashFiles('./Kemkas.Web/frontend/yarn.lock') }}
path: |
./Kemkas.Web/frontend/node_modules
restore-keys: |
npm-${{ hashFiles('./frontend/yarn.lock') }}
npm-${{ hashFiles('./Kemkas.Web/frontend/yarn.lock') }}
npm-
- name: Yarn Install
run: |
+2 -1
View File
@@ -50,7 +50,8 @@
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install"/>
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn install --frozen-lockfile"/>
<Exec WorkingDirectory="$(SpaRoot)" Command="bash compile-less.sh"/>
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn run build"/>
<!-- Include the newly-built files in the publish output -->