From 2ade8fc8ee998725a139b4ab47d9b0ad5a08f832 Mon Sep 17 00:00:00 2001 From: solufa Date: Tue, 13 Aug 2024 23:58:07 +0900 Subject: [PATCH] chore: update nodejs.yml --- .github/workflows/nodejs.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 980cbb86..83004947 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -4,15 +4,15 @@ on: [push, pull_request] jobs: test: - name: "Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}" + name: 'Test on Node:${{ matrix.node-version }} OS:${{ matrix.os }}' runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [16, 18, 20] + node-version: [18, 20] os: [ubuntu-latest] include: - os: windows-latest - node-version: 18 + node-version: 20 steps: - uses: actions/checkout@v3 - name: setup Node.js ${{ matrix.node-version }} @@ -22,7 +22,7 @@ jobs: - uses: actions/cache@v2 id: npm-cache with: - path: "node_modules" + path: 'node_modules' key: ${{ runner.os }}-node-v${{ matrix.node-version }}-npm-${{ hashFiles('package-lock.json') }} - run: npm install if: steps.npm-cache.outputs.cache-hit != 'true' @@ -41,13 +41,13 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 16 - registry-url: "https://registry.npmjs.org" + node-version: 20 + registry-url: 'https://registry.npmjs.org' - uses: actions/cache@v2 id: npm-cache with: - path: "node_modules" - key: ${{ runner.os }}-node-v18-npm-${{ hashFiles('package-lock.json') }} + path: 'node_modules' + key: ${{ runner.os }}-node-v20-npm-${{ hashFiles('package-lock.json') }} - run: npm install if: steps.npm-cache.outputs.cache-hit != 'true' - run: npm run build