Skip to content

Commit

Permalink
experiment: using node_module cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnekar committed Dec 18, 2023
1 parent be3ed49 commit ad4adbe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,21 @@ jobs:
node-version: 18
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') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build
${{ runner.os }}-
- name: Install Dependencies
run: npm ci
if: steps.cache-node-modules.outputs.cache-hit != true
- name: Run all checks
run: npm run check
- name: Run Tests
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ on:
workflow_dispatch:
inputs:
release:
description: Run Release Workflow
required: true
default: false
type: boolean
prerelease:
description: 'Make the release a pre-release'
description: Make the release a pre-release
required: true
default: true
type: boolean
draft:
description: 'Create draft release'
description: Create draft release
required: true
default: true
type: boolean
Expand Down

0 comments on commit ad4adbe

Please sign in to comment.