diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d77d57..6b06e44 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,17 +22,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- + cache: 'npm' # Install Node Modules - name: Install - run: npm ci + run: npm ci --legacy-peer-deps # Lint JavaScript - name: Lint JavaScript @@ -51,17 +45,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- + cache: 'npm' # Install Node Modules - name: Install - run: npm ci + run: npm ci --legacy-peer-deps # Lint CSS - name: Lint CSS @@ -80,17 +68,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- + cache: 'npm' # Install Node Modules - name: Install - run: npm ci + run: npm ci --legacy-peer-deps # Test - name: Test @@ -110,17 +92,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - - name: Cache dependencies - uses: actions/cache@v4 - with: - path: ~/.npm - key: npm-${{ hashFiles('package-lock.json') }} - restore-keys: npm- + cache: 'npm' # Install Node Modules - name: Install - run: npm ci + run: npm ci --legacy-peer-deps # Build the website - name: Build