-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected behavior for pre/post commands using wrangler #178
Comments
Because As for needing to execute wrangler via your package manager, this is because we don't install wrangler globally. I'll have a think on whether it would make sense for us to do so, but also I want us to get away from installing wrangler unless we really need to (see #199). This means in most cases it would not end up installed globally (it would probably be listed as a devDependency and installed to your project's |
Agreed, I was thinking about something like a
Yep, that's already the case for us, be we couldn't stop the action from attempting to install it 😛 I'm indecisive whether I would expect in a wrangler-action to have |
Hi! If/when wrangler has this, we can start setting this environment variable within wrangler-action. |
Hej there,
what we do is using the
preCommands
hook to executewrangler secret:bulk
.(Just for some context: in our CI step we need to sync some secrets from an external system towards Cloudflare. Thus we can/do not want to use the very static approach of using the
secrets
/env
dance in the action definition, because this would mean using GitHub as an intermediary secrets store and having one more place that needs to be kept in sync manually.)Thing's I've found:
wrangler
is not available right away in that context, but needs to be invoked via your package manager of choice (kudos & hat tip for recent work on supporting multiple ones 👌)Let me know what you think about this. Definitely not urgent as there are easy workaround, but took me a couple attempts to get it right 😇
Thanks for all your work on the action 🙏
The text was updated successfully, but these errors were encountered: