From dbb6f312a233a852214ae1f5d8635b127d2bd1fc Mon Sep 17 00:00:00 2001 From: Andor Kesselman Date: Sun, 5 May 2024 17:09:23 +0530 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a718bed..52ff7b8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,26 +1,23 @@ -name: Node.js CI - +name: Build on: push: - branches: [ "staging" ] - pull_request: - branches: [ "staging" ] - jobs: build: - - runs-on: ubuntu-latest - + runs-on: ubuntu-20.04 strategy: matrix: - node-version: [18.x] - + node-version: [18.0] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v3 + with: + version: 8 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build