From ba5adcf5cdd45a055b17f1ea4375c737ae3e41b0 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Sun, 10 Oct 2021 00:38:19 +0800 Subject: [PATCH] chore: update github action. --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20ad80dc..eaab2790 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,11 +24,18 @@ jobs: node-version: [12.x, 14.x, 15.x, 16.x] steps: - uses: actions/checkout@v2 + + - name: Install pnpm + uses: pnpm/action-setup@v2.0.1 + with: + version: 6.15.1 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - - run: npm install -g pnpm + cache: 'pnpm' + - run: pnpm install - run: pnpm lint