build: move the worker from pnpm to npm

Replace pnpm-lock.yaml with package-lock.json. allowBuilds and
pnpm.onlyBuiltDependencies collapse into package.json#allowScripts, which npm
11 gates the same way; sharp is omitted because it is not in the tree.

cloudflare-worker/.github/workflows/ci.yml is updated for consistency even
though it never runs: GitHub only reads workflows from the repository root.
This commit is contained in:
tiennm99 committed 2026-08-17 12:22:21 +07:00
1 parent 5c5463057e
commit 5bb38fb220
6 files changed
+2958 -1662

No files matched your search

+4 -5
View File
@@ -10,13 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm exec wrangler deploy --dry-run
cache: 'npm'
- run: npm ci
- run: npm test
- run: npx wrangler deploy --dry-run
env:
CLOUDFLARE_API_TOKEN: dummy