From 0470252472fcd24a964144acd07f4bdf941846ab Mon Sep 17 00:00:00 2001 From: Niels Klomp Date: Tue, 19 Mar 2024 22:54:40 +0100 Subject: [PATCH] chore: Fix workflow to use PNPM --- .github/workflows/main.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec7eca5a..ca1cddee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,19 +12,24 @@ jobs: name: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: install node v16 - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 with: - node-version: 18 - - name: yarn install - run: yarn install - - name: yarn build - run: yarn build + fetch-depth: 0 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'pnpm' + - run: git diff -u + - run: pnpm install --frozen-lockfile + - run: pnpm build - name: tsc uses: icrawl/action-tsc@v1 - - name: yarn test - run: yarn test + - name: pnpm test + run: pnpm test - name: codecov uses: codecov/codecov-action@v2 with: