mirror of
https://github.com/tiennm99/claude-code-routine-trigger-worker.git
synced 2026-05-13 22:57:57 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
@@ -10,12 +10,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: '22'
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- run: npx wrangler deploy --dry-run
|
||||
cache: 'pnpm'
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm test
|
||||
- run: pnpm exec wrangler deploy --dry-run
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: dummy
|
||||
|
||||
@@ -63,7 +63,7 @@ Each fire shows up in *History* with status code and response body — open `cla
|
||||
```bash
|
||||
git clone https://github.com/tiennm99/claude-code-routine-trigger-worker
|
||||
cd claude-code-routine-trigger-worker
|
||||
npm install
|
||||
pnpm install
|
||||
|
||||
# Upload secrets (from Anthropic routine editor → API trigger)
|
||||
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
|
||||
@@ -153,7 +153,7 @@ curl "http://localhost:8787/__scheduled?cron=*+*+*+*+*"
|
||||
### Tests
|
||||
|
||||
```bash
|
||||
npm test
|
||||
pnpm test
|
||||
```
|
||||
|
||||
Vitest runs in the Workers runtime via `@cloudflare/vitest-pool-workers`. Tests mock `fetch`, so they consume no Anthropic quota.
|
||||
|
||||
Generated
-4238
File diff suppressed because it is too large
Load Diff
@@ -5,6 +5,7 @@
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
"packageManager": "pnpm@11.1.1",
|
||||
"main": "worker.js",
|
||||
"scripts": {
|
||||
"dev": "wrangler dev",
|
||||
|
||||
Generated
+2508
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user