Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/cache-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Cache Node Workflow
on: workflow_dispatch
permissions:
contents: write
jobs:
cache-setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Node Modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{env.cache-name}}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{env.cache-name}}-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install Dependencies
run: npm install
4 changes: 2 additions & 2 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cache Workflow
name: Cache NPM Workflow
on: workflow_dispatch
permissions:
contents: write
Expand All @@ -15,7 +15,7 @@ jobs:
cache-name: cache-npm
with:
path: ~/.npm
key: ${{ runner.os }}-${{env.cache-name}}-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-${{env.cache-name}}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{env.cache-name}}-
${{ runner.os }}-
Expand Down