Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Update CI to use Volta, latest checkout/cache setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Aug 3, 2023
1 parent d2c3f91 commit 92a9eb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
matrix:
node: [ '16', '18', '20' ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: node_modules
key: ${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
- uses: actions/setup-node@v2
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node }}
registry-url: https://registry.npmjs.org/
npm-version: 6
- if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- run: npm test
Expand Down

0 comments on commit 92a9eb0

Please sign in to comment.