Skip to content

Commit

Permalink
ci: Use Node.js 20 and pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
sgryjp committed Oct 13, 2024
1 parent 7968afa commit dcc2568
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcc2568

Please sign in to comment.