diff --git a/.github/workflows/deploy_worker.yaml b/.github/workflows/deploy_worker.yaml index beec55f..591eeec 100644 --- a/.github/workflows/deploy_worker.yaml +++ b/.github/workflows/deploy_worker.yaml @@ -22,6 +22,5 @@ jobs: - uses: actions/checkout@v3 - name: Deploy - working-directory: packages/worker # Specifies the directory where the npm command should be run # run npx wrangler publish - run: CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npx wrangler deploy \ No newline at end of file + run: CLOUDFLARE_ACCOUNT_ID=${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN=${{ secrets.CLOUDFLARE_API_TOKEN }} npm run deploy \ No newline at end of file diff --git a/package.json b/package.json index 9d3c1da..6b3f7d0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "dev": "lerna run dev --scope @cojourney/agent --scope @cojourney/app --scope @cojourney/worker", "dev:all": "lerna run dev", + "deploy": "lerna run deploy --scope @cojourney/worker", "cj": "cd packages/shell && npm run dev", "build": "lerna run build", "build:worker": "lerna run build --scope @cojourney/agent --scope @cojourney/worker",