Skip to content

The Open Source DocuSign Alternative.

ci: use built-in cache from setup-node action

Nicholas Sylked4b130a731b6
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 00d4fff2f..f8b8e97aa 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -22,20 +22,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
- - name: Get npm cache directory
- shell: bash
- run: |
- echo "CACHE_PATH=$(npm config get cache)" >> $GITHUB_ENV
- - name: Setup npm cache
- id: cache
- uses: actions/cache@v3
- with:
- path: ${{ env.CACHE_PATH }}
- key: ${{ runner.os }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-npm-cache-
+ cache: npm
- name: Install dependencies
- if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build
run: npm run build