diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c9019deb..1b8903b2 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -14,11 +14,9 @@ jobs: name: Checkout repository 🫠 - name: Setup Node uses: actions/setup-node@v3 - - uses: actions/cache@v3 - id: npm-cache with: - path: ~/.npm - key: npm-${{ hashFiles('**/package-lock.json') }} + node-version: 18 + cache: 'npm' - run: npm ci - run: npm test build: @@ -27,10 +25,8 @@ jobs: - uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 - - uses: actions/cache@v3 - id: npm-cache with: - path: ~/.npm - key: npm-${{ hashFiles('**/package-lock.json') }} + node-version: 18 + cache: 'npm' - run: npm ci - run: npm run build