From 9e3e8e1aee568e82881aa24a517f9c39196bfde0 Mon Sep 17 00:00:00 2001 From: gimy Date: Sat, 21 Oct 2023 20:47:43 +0800 Subject: [PATCH] build: use pnpm install without ci --- .github/workflows/ci.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1b82b9..be312fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,17 +21,14 @@ jobs: - name: Set node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x cache: pnpm - - name: Setup - run: npm i -g @antfu/ni - - name: Install - run: nci + run: pnpm install - name: Lint - run: nr lint + run: pnpm run lint TypeCheck: runs-on: ubuntu-latest @@ -44,24 +41,21 @@ jobs: - name: Set node uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 18.x cache: pnpm - - name: Setup - run: npm i -g @antfu/ni - - name: Install - run: nci + run: pnpm install - name: Typecheck - run: nr typecheck + run: pnpm run typecheck Test: runs-on: ${{ matrix.os }} strategy: matrix: - node: [16.x] + node: [18.x] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false @@ -78,13 +72,13 @@ jobs: cache: pnpm - name: Install - run: pnpm i --frozen-lockfile + run: pnpm install - name: Build - run: pnpm build + run: pnpm run build - name: Test - run: pnpm test + run: pnpm run test # we release if everything is fine Release: runs-on: ubuntu-latest @@ -103,7 +97,7 @@ jobs: extra_plugins: | @semantic-release/changelog @semantic-release/git - node-version: 14.x + node-version: 18.x env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}