From f853b5d9b8f38d451e664d3efbfa6a7a4ad514be Mon Sep 17 00:00:00 2001 From: Sean McQuay Date: Wed, 3 Apr 2024 04:33:34 -0500 Subject: [PATCH] Updated action flow. --- .github/workflows/main.yml | 40 ++++++++------------------------------ 1 file changed, 8 insertions(+), 32 deletions(-) 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