From ac4dcf18c0ccffbafdfcaf3cb61ced3a635a7602 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Fri, 29 Mar 2024 15:33:33 +0800 Subject: [PATCH] gh action --- .github/workflows/nodejs.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 53e25ee7..8c76b3ca 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,18 +9,17 @@ jobs: strategy: matrix: - node-version: [12.x] + node-version: [20.x] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test run: | - npm ci - npm run build --if-present - npm test + yarn install + yarn test env: CI: true