Skip to content

Commit

Permalink
ci: use setup-node caching with npm ci
Browse files Browse the repository at this point in the history
PR-URL: #43
Credit: @nschonni
Close: #43
Reviewed-by: @isaacs
  • Loading branch information
nschonni authored and isaacs committed May 25, 2023
1 parent 6fc2977 commit 84e8462
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -30,10 +30,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm

# Run the installer script
- name: Install dependencies
run: npm install
run: npm ci

# Run the tests
- name: Run Tap tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/isaacs-makework.yml
Expand Up @@ -10,11 +10,11 @@ jobs:
makework:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: put repo in package.json
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/static.yml
Expand Up @@ -30,12 +30,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Nodejs ${{ matrix.node-version }}
- name: Use Nodejs
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
run: npm ci
- name: Generate typedocs
run: npm run typedoc
- name: Setup Pages
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/typedoc.yml
Expand Up @@ -30,12 +30,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Nodejs ${{ matrix.node-version }}
- name: Use Nodejs
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm install
run: npm ci
- name: Generate typedocs
run: npm run typedoc

Expand Down

0 comments on commit 84e8462

Please sign in to comment.