fix: ci docker build & cache key & --frozen-lockfile
This commit is contained in:
@@ -20,11 +20,11 @@ jobs:
|
|||||||
- name: Cache NPM packages
|
- name: Cache NPM packages
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: npm-${{ hashFiles('./frontend/yarn.lock') }}
|
key: npm-${{ hashFiles('./Kemkas.Web/frontend/yarn.lock') }}
|
||||||
path: |
|
path: |
|
||||||
./Kemkas.Web/frontend/node_modules
|
./Kemkas.Web/frontend/node_modules
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
npm-${{ hashFiles('./frontend/yarn.lock') }}
|
npm-${{ hashFiles('./Kemkas.Web/frontend/yarn.lock') }}
|
||||||
npm-
|
npm-
|
||||||
- name: Yarn Install
|
- name: Yarn Install
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
|
|
||||||
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
<Target Name="PublishRunWebpack" AfterTargets="ComputeFilesToPublish">
|
||||||
<!-- As part of publishing, ensure the JS resources are freshly built in production mode -->
|
<!-- 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"/>
|
<Exec WorkingDirectory="$(SpaRoot)" Command="yarn run build"/>
|
||||||
|
|
||||||
<!-- Include the newly-built files in the publish output -->
|
<!-- Include the newly-built files in the publish output -->
|
||||||
|
|||||||
Reference in New Issue
Block a user