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: