-
-
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
feat(v2): add automated canary releases #3827
Conversation
Deploy preview for docusaurus-2 ready! Built with commit 51d1517 |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3827--docusaurus-2.netlify.app/classic/ |
Size Change: +16 B (0%) Total Size: 156 kB ℹ️ View Unchanged
|
@@ -32,6 +32,9 @@ | |||
"crowdin:upload:v2": "crowdin upload sources --config ./crowdin-v2.yaml", | |||
"crowdin:uploadTranslations:v2": "crowdin upload translations --config ./crowdin-v2.yaml", | |||
"crowdin:download:v2": "crowdin download --config ./crowdin-v2.yaml", | |||
"canary": "yarn canary:bumpVersion && yarn canary:publish", | |||
"canary:bumpVersion": "yarn lerna version 2.0.0-alpha.`git rev-parse --short HEAD` --exact --no-push --yes", | |||
"canary:publish": "yarn lerna publish from-package --dist-tag canary --yes", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes:
- tried to use
lerna publish --canary
but wasn't able to make it work, as it seems to refuse to publish unchanged packages, and to generate a good version name (probably because we already use alpha.patch) from-package
should be convenient, as if we try to publish twice the same version, it will just avoid to publish packages that are already published, instead of failing due to trying to publish twice the same version (ex: we restart the CI on same commit: it should still work)
The NPM_AUTH_TOKEN has been added as GH actions env variable, for publish permission to NPM. Let's merge and hope it works! |
Motivation
Make new fixes accessible to power users as soon as they get merged, by publishing a npm version under the "canary" dist tag.