chore: migrate from npm to pnpm

Replace package-lock.json with pnpm-lock.yaml, add packageManager field,
update GitHub Actions workflow to use pnpm/action-setup@v4, and convert
README instructional npm commands to pnpm equivalents.
This commit is contained in:
2026-05-13 10:20:18 +07:00
parent d8deea4009
commit 9b377ecd00
6 changed files with 3036 additions and 4572 deletions
+12 -6
View File
@@ -19,12 +19,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm test
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
build-deploy:
needs: test
@@ -34,12 +37,15 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run build-nolog
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build-nolog
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with: