diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76af5b0..fd9c653 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,20 +8,13 @@ jobs: name: CI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: '12.x' - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + node-version: 'lts/*' + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - run: npm ci - run: npx lockfile-lint --type npm --path package-lock.json --validate-https --allowed-hosts npm - run: npm run lint