This commit is contained in:
@@ -17,7 +17,8 @@ jobs:
|
||||
echo $PWD
|
||||
ls .
|
||||
|
||||
- name: Cache node_modules
|
||||
- name: Restore node_modules
|
||||
id: cache-node
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: node_modules
|
||||
@@ -25,12 +26,26 @@ jobs:
|
||||
restore-keys: |
|
||||
yarn-cache-
|
||||
|
||||
- name: Restore dist
|
||||
id: cache-dist
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: dist
|
||||
key: dist-cache-${{ github.ref_name }}-${{ hashFiles('**/*.ts') }}
|
||||
|
||||
- name: Install Dependencies with yarn
|
||||
if: steps.cache-node.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
yarn install --immutable
|
||||
ls .
|
||||
|
||||
- name: Build Nestjs project
|
||||
if: steps.cache-dist.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
yarn build
|
||||
ls .
|
||||
|
||||
- name: Deploy dist
|
||||
run: |
|
||||
cp dist $DOCKER_VOLUME/scheduler/back/
|
||||
ls $DOCKER_VOLUME/scheduler/back
|
||||
Reference in New Issue
Block a user