From cacb4d2013056ab552dca7eaee66cd82599b5f4f Mon Sep 17 00:00:00 2001 From: tbxark Date: Wed, 28 Aug 2024 15:47:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20npm=20=E7=BC=BA=E5=B0=91=20wrangler=20sc?= =?UTF-8?q?ript=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cloudflare.yml | 2 +- package.json | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cloudflare.yml b/.github/workflows/cloudflare.yml index 3db25391..02b8389d 100644 --- a/.github/workflows/cloudflare.yml +++ b/.github/workflows/cloudflare.yml @@ -20,7 +20,7 @@ jobs: ${{secrets.WRANGLER_TOML}} EOF - run: npm install - - run: CLOUDFLARE_API_TOKEN=${{ secrets.CF_API_TOKEN }} npm run wrangler publish --config=wrangler.toml > /dev/null + - run: CLOUDFLARE_API_TOKEN=${{ secrets.CF_API_TOKEN }} npm run wrangler deploy --config=wrangler.toml > /dev/null - name: Check CF_WORKERS_DOMAIN exists run: | diff --git a/package.json b/package.json index eb975b98..a8904c74 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "chatgpt-telegram-workers", "type": "module", - "version": "1.9.1", + "version": "1.9.2", "description": "The easiest and quickest way to deploy your own ChatGPT Telegram bot is to use a single file and simply copy and paste it. There is no need for any dependencies, local development environment configuration, domain names, or servers.", "author": "TBXark", "license": "MIT", @@ -24,13 +24,15 @@ "build:local": "BUILD_MODE=local vite build", "build:docker": "npm run build:local && cd dist && docker build -t chatgpt-telegram-workers:latest .", "build:vercel": "BUILD_MODE=vercel vite build", + "build:pack": "BUILD_MODE=pack vite build", "deploy:dist": "wrangler deploy", "deploy:build": "npm run build && wrangler deploy", "deploy:vercel": "vercel deploy --prod", "start:dist": "node dist/index.js", "start:local": "CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml tsx src/adapter/local/index.ts", "start:debug": "wrangler dev --local", - "prepare:vercel": "tsx ./scripts/plugins/vercel/setenv.ts" + "prepare:vercel": "tsx ./scripts/plugins/vercel/setenv.ts", + "wrangler": "wrangler" }, "dependencies": { "cloudflare-worker-adapter": "^1.3.2"