From dcc2568feb7215054a3153f1b067a1b9dfa00748 Mon Sep 17 00:00:00 2001 From: Suguru Yamamoto Date: Sun, 13 Oct 2024 17:56:49 +0900 Subject: [PATCH] ci: Use Node.js 20 and pnpm --- .github/workflows/ci.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c85f0e..44a4187 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,29 +11,43 @@ jobs: runs-on: windows-latest strategy: matrix: - node-version: ["16", "latest"] + node-version: ["20", "latest"] steps: - uses: actions/checkout@v3 + - name: Setup Node.js (${{ matrix.node-version }}) - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run test + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: latest + run_install: true + + - run: pnpm install-test package: runs-on: windows-latest needs: test strategy: matrix: - node-version: ["16"] + node-version: ["20"] steps: - uses: actions/checkout@v3 + - name: Setup Node.js (${{ matrix.node-version }}) uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - run: npm ci + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + version: latest + run_install: true + - run: npm install --global vsce - run: vsce package - uses: actions/upload-artifact@v3