fix: ci docker build & cache key & --frozen-lockfile
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
Reference in New Issue
Block a user