diff --git a/.github/workflows/workers-deploy.yml b/.github/workflows/workers-deploy.yml index e4e268e9f..106d2927f 100644 --- a/.github/workflows/workers-deploy.yml +++ b/.github/workflows/workers-deploy.yml @@ -21,10 +21,10 @@ jobs: node-version: 20 cache: "npm" - run: cd packages/workers && npm install - - uses: cloudflare/wrangler-action@v3 + - uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_WORKERS_DEPLOY_API_TOKEN }} environment: "main" workingDirectory: "packages/workers/" postCommands: | - echo "${{ secrets.CLOUDFLARE_STREAM_IMAGES_API_TOKEN }}" | npx wrangler secret put CLOUDFLARE_API_TOKEN + echo "${{ secrets.CLOUDFLARE_STREAM_IMAGES_API_TOKEN }}" | wrangler secret put CLOUDFLARE_API_TOKEN