-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
ORGANIZATION_NAME and PROJECT_NAME didn't work as expected #374
Comments
Hi @aadsm. Yeah, if you have
We can discuss whether that should be the case. I can see the argument that manually set environment variables should take precedent, but at the time we thought that all siteConfig variables should be first in line. But, we definitely don't want you publishing to an unexpected place - so we should figure something out that makes that not happen again. |
Oh I see. I assumed that these would override any siteConfig options as that's usually what happens with these type of variables. |
Just adding a note to mention I also hit this unexpected behavior. Same as @aadsm, I was expecting explicitly set environment variables to take precedence over any configuration set in |
Seems reasonable that we should reverse the precedent. Anyone want to submit a PR here? |
Me 👍 |
I followed the guide on publishing to github and used
GIT_USER=aadsm ORGANIZATION_NAME=aadsm PROJECT_NAME=draft-js CURRENT_BRANCH=docusaurus USE_SSH=true npm run publish-gh-pages
to publish to my own fork of draft.js.I was expecting the aadsm/draft-js#gh-pages branch to be updated but in reality facebook/draft-js#gh-pages was instead!
I haven't debug why, I'm assuming that at some point the configuration I have on
siteConfig.js
was used but I don't think this should have happened.The text was updated successfully, but these errors were encountered: