wrangler google action not working

I have an issue with wrangler-action@v3 it seems. i have a monorepo and deploy several services. All run fine, except one, where it seems it cannot install wrangler (and its funny, as this works fine for the other services in the same github action. ##[debug]Evaluating condition for step: 'šŸš€ Publish analytics' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: šŸš€ Publish analytics ##[debug]Loading inputs ##[debug]Evaluating: secrets.CLOUDFLARE_API_TOKEN ##[debug]Evaluating Index: ##[debug]..Evaluating secrets: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'CLOUDFLARE_API_TOKEN' ##[debug]=> '' ##[debug]Result: '' ##[debug]Loading env Run cloudflare/wrangler-action@v3 with: apiToken: workingDirectory: apps/analytics command: deploy wranglerVersion: 3.30.1 quiet: false env: TURBO_TOKEN: TURBO_API: TURBO_REMOTE_CACHE_SIGNATURE_KEY: TURBO_TEAM: *** TURBO_REMOTE_ONLY: true PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin HUSKY: 0 ::group::šŸ“„ Installing Wrangler šŸ“„ Installing Wrangler /opt/hostedtoolcache/node/20.11.1/x64/bin/npm i [email protected] npm ERR! Cannot set properties of null (setting 'peer') npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-03-02T20_07_59_833Z-debug-0.log ::endgroup:: Error: The process '/opt/hostedtoolcache/node/20.11.1/x64/bin/npm' failed with exit code 1 Error: šŸšØ Action failed ##[debug]Node Action run completed with exit code 1 ##[debug]Finishing: šŸš€ Publish analytics
1 Reply
piffie
piffieOPā€¢9mo ago
after ton of debugging: The issue was, that this one uses a second private npm registry, and the npm was messing it up, and not reporting anything useful. changed the packaging library to pnpm, then it started to make sense. also, would be great if wrangler-action would skip the wrangler install if it is already there - rather useless to install it 5 times in one action.
Want results from more Discord servers?
Add your server