Skip to content

Commit

Permalink
MAINT: Simplify spelling, setup-node has cache-support now
Browse files Browse the repository at this point in the history
  • Loading branch information
wosc committed Jan 30, 2025
1 parent e6d2634 commit 901baa3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release-api-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: '14'

- name: Cache dependencies
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: ./docs/api/node_modules
key: modules-${{ hashFiles('docs/api/package-lock.json') }}
node-version: "20"
cache: "npm"
cache-dependency-path: "docs/api/package-lock.json"

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd docs/api
npm ci --ignore-scripts
Expand Down

0 comments on commit 901baa3

Please sign in to comment.