From a273f67066c7c19b01ff4348eb9d7e857615cca6 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Wed, 19 Jan 2022 19:24:40 +0100 Subject: chore: switch to pnpm (#153) --- .github/workflows/ci.yml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1734cb50..5dc89fa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,20 +25,25 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 6 + - name: Set node version to ${{ matrix.node_version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node_version }} - cache: 'npm' + cache: 'pnpm' - name: Install deps - run: npm ci + run: pnpm install - name: Build - run: npm run build + run: pnpm run build - name: Test - run: npm run test + run: pnpm run test lint: runs-on: ubuntu-latest @@ -46,15 +51,22 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 6 - name: Set node version to 16 uses: actions/setup-node@v2 with: node-version: 16 - cache: 'npm' + cache: 'pnpm' - name: Install deps - run: npm ci + run: pnpm install - name: Lint - run: npm run lint + run: pnpm run lint -- cgit v1.2.3