update cache key

This commit is contained in:
medusa
2024-08-27 17:31:27 +08:00
parent aba60ea2e0
commit 8aa5c3e5ee
2 changed files with 4 additions and 2 deletions

View File

@@ -112,6 +112,7 @@ jobs:
- name: Runner Debug Information - name: Runner Debug Information
id: debug-info id: debug-info
run: | run: |
cp -v ${{ env.SOURCECODE_DIR }}/project/package.json .
cd ${{ env.SOURCECODE_DIR }} cd ${{ env.SOURCECODE_DIR }}
echo "git version: $(git --version)" echo "git version: $(git --version)"
echo "git lfs version: $(git-lfs --version)" echo "git lfs version: $(git-lfs --version)"
@@ -128,7 +129,7 @@ jobs:
with: with:
path: | path: |
${{ env.SOURCECODE_DIR }}/project/node_modules ${{ env.SOURCECODE_DIR }}/project/node_modules
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('${{ env.SOURCECODE_DIR }}/project/package.json') }} key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-npm-dependencies- ${{ runner.os }}-npm-dependencies-

View File

@@ -70,6 +70,7 @@ jobs:
- name: Runner Debug Information - name: Runner Debug Information
id: debug-info id: debug-info
run: | run: |
cp -v ${{ env.SOURCECODE_DIR }}/project/package.json .
cd ${{ env.SOURCECODE_DIR }} cd ${{ env.SOURCECODE_DIR }}
echo "git version: $(git --version)" echo "git version: $(git --version)"
echo "git lfs version: $(git-lfs --version)" echo "git lfs version: $(git-lfs --version)"
@@ -86,7 +87,7 @@ jobs:
with: with:
path: | path: |
${{ env.SOURCECODE_DIR }}/project/node_modules ${{ env.SOURCECODE_DIR }}/project/node_modules
key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('${{ env.SOURCECODE_DIR }}/project/package.json') }} key: ${{ runner.os }}-npm-dependencies-${{ hashFiles('package.json') }}
restore-keys: | restore-keys: |
${{ runner.os }}-npm-dependencies- ${{ runner.os }}-npm-dependencies-