mirror of
https://github.com/tiennm99/claude-code-routine-trigger.git
synced 2026-10-13 22:15:38 +00:00
chore: migrate from npm to pnpm
This commit is contained in:
1 parent
d786f993cc
commit
c5cb39b89a
5 files changed
+2518
-4244
No files matched your search
+7
-4
@@ -10,12 +10,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 11
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
- run: npm ci
|
- run: pnpm install --frozen-lockfile
|
||||||
- run: npm test
|
- run: pnpm test
|
||||||
- run: npx wrangler deploy --dry-run
|
- run: pnpm exec wrangler deploy --dry-run
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: dummy
|
CLOUDFLARE_API_TOKEN: dummy
|
||||||
@@ -63,7 +63,7 @@ Each fire shows up in *History* with status code and response body — open `cla
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/tiennm99/claude-code-routine-trigger-worker
|
git clone https://github.com/tiennm99/claude-code-routine-trigger-worker
|
||||||
cd claude-code-routine-trigger-worker
|
cd claude-code-routine-trigger-worker
|
||||||
npm install
|
pnpm install
|
||||||
|
|
||||||
# Upload secrets (from Anthropic routine editor → API trigger)
|
# Upload secrets (from Anthropic routine editor → API trigger)
|
||||||
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
|
echo -n 'https://api.anthropic.com/v1/claude_code/routines/trig_.../fire' \
|
||||||
@@ -153,7 +153,7 @@ curl "http://localhost:8787/__scheduled?cron=*+*+*+*+*"
|
|||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
```bash
|
```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.
|
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",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"packageManager": "pnpm@11.1.1",
|
||||||
"main": "worker.js",
|
"main": "worker.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wrangler dev",
|
"dev": "wrangler dev",
|
||||||
|
|||||||
Generated
+2508
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user