From 5091053f908c3fe229bf17439b7af879ef558423 Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Wed, 19 Mar 2025 02:23:20 +0800 Subject: [PATCH] fix(ci): switch to PNPM and update package manager version --- .github/workflows/build_and_test.yml | 24 ++++++++++++------------ package.json | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3b9e6ba..50bcf8b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -5,13 +5,12 @@ name: Build & Test on: push: - branches: [ "main" ] + branches: ['main'] pull_request: - branches: [ "main" ] + branches: ['main'] jobs: build: - runs-on: ubuntu-latest strategy: @@ -20,12 +19,13 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + - run: pnpm install + - run: pnpm build + - run: pnpm test diff --git a/package.json b/package.json index e620937..9d32913 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "format": "prettier --write ." }, "type": "module", - "packageManager": "pnpm@9.14.4", + "packageManager": "pnpm@10.6.2", "devDependencies": { "@melt-ui/pp": "^0.3.2", "@sveltejs/adapter-auto": "^4.0.0",