Skip to content

Commit

Permalink
ci: fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jef authored Oct 21, 2022
1 parent 392e0bb commit e1b4320
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 16.18.0
- name: Cache mode modules
id: cache-npm
- name: Cache node modules
id: cache_node_modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-node-
- name: Install Dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
if: steps.cache_node_modules.outputs.cache-hit != 'true'
run: npm ci
- name: Compile TypeScript
run: npm run compile
Expand Down

0 comments on commit e1b4320

Please sign in to comment.