Describe the Bug
CloudFlare Workers - Build Variables & Secrets don't appear consistently in build jobs.
Expected Behavior
I have an NPM_TOKEN registered in multiple workers so that during the build phase, a private NPM module can be installed. This works in some workers but not others.
Steps to Reproduce
- If you visit https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/greg-l-turnquist/production/settings, you can see clearly that NPM_TOKEN is set. And if you dig in, this value has been set for some time.
- In the Deployments version history, this works just fine WHEN you build on main branch. However, any builds NOT on main branch fail due to NPM_TOKEN not being visible.
- This implies that setting NPM_TOKEN doesn't end up being universal.
Contrast this with another CloudFlare Worker, that seems to build just fine.
- If you check out https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/pro-coder-io/production/settings, it also has NPM_TOKEN configured. And it builds fine on main branch.
- But it ALSO builds fine on branch builds as recently as 15 days ago => https://dash.cloudflare.com/aa1e065f6f6da808def1292426bed033/workers/services/view/pro-coder-io/production/builds/8e058b56-e576-4f3c-9452-46f545c12acf
This is wholly inconsistent behavior, implying something under the hood has changed.
Describe the Bug
CloudFlare Workers - Build Variables & Secrets don't appear consistently in build jobs.
Expected Behavior
I have an NPM_TOKEN registered in multiple workers so that during the build phase, a private NPM module can be installed. This works in some workers but not others.
Steps to Reproduce
Contrast this with another CloudFlare Worker, that seems to build just fine.
This is wholly inconsistent behavior, implying something under the hood has changed.