Skip to content

Commit

Permalink
Update GitHub Action's cache key.
Browse files Browse the repository at this point in the history
Changed the GitHub Action's cache key from package-lock.json to
package.json in eslint-front.yml, spectral.yml, and eslint-back.yml.
The lock file does not exist yet at this moment.

Issue: #200

Signed-off-by: Nikolay Martyanov <[email protected]>
  • Loading branch information
OhmSpectator committed Jan 5, 2024
1 parent 5c36ecb commit 7a5b510
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/eslint-back.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./backend/node_modules
key: ${{ runner.os }}-back-node-${{ hashFiles('./backend/package-lock.json') }}
key: ${{ runner.os }}-back-node-${{ hashFiles('./backend/package.json') }}
restore-keys: |
${{ runner.os }}-back-node-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eslint-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./frontend/node_modules
key: ${{ runner.os }}-front-node-${{ hashFiles('./frontend/package-lock.json') }}
key: ${{ runner.os }}-front-node-${{ hashFiles('./frontend/package.json') }}
restore-keys: |
${{ runner.os }}-front-node-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/spectral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: actions/cache@v3
with:
path: ./api/node_modules
key: ${{ runner.os }}-api-node-${{ hashFiles('./api/package-lock.json') }}
key: ${{ runner.os }}-api-node-${{ hashFiles('./api/package.json') }}
restore-keys: |
${{ runner.os }}-api-node-
Expand Down

0 comments on commit 7a5b510

Please sign in to comment.