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