diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3be2f93..fcafa09 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,21 +5,15 @@ jobs: install: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Checkout + uses: actions/checkout@v4 with: - node-version: 22 - cache: "npm" + fetch-depth: 1 - - uses: actions/cache@v4 - env: - cache-name: cache-node-modules + - name: Set up Node.js + uses: actions/setup-node@v4 with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + node-version: 22 - run: npm ci - run: npm run lint