Skip to content

Update actions/cache action to v4 #476

Update actions/cache action to v4

Update actions/cache action to v4 #476

Workflow file for this run

name: main
on: push
jobs:
npm-script:
strategy:
fail-fast: false
matrix:
script: [test]
if: "!contains(github.event.head_commit.message, '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
- run: npm ci
- run: npm run ${{ matrix.script }}