Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from chvmvd/add-action-test
Browse files Browse the repository at this point in the history
Fix bug in cache
  • Loading branch information
chvmvd authored Mar 31, 2023
2 parents f84d155 + f01727f commit 91b0a67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: latest

- name: Cache npm packages
id: npm-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
cache: npm

- name: Install npm packages
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
shell: bash

Expand Down
10 changes: 2 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,10 @@ runs:
uses: actions/setup-node@v3
with:
node-version: latest

- name: Cache npm packages
id: npm-cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
cache: npm
cache-dependency-path: ${{ inputs.rootDir }}/package-lock.json

- name: Install npm packages
if: steps.npm-cache.outputs.cache-hit != 'true'
working-directory: ${{ inputs.rootDir }}
run: npm ci
shell: bash
Expand Down

0 comments on commit 91b0a67

Please sign in to comment.