diff --git a/package.json b/package.json index 2f44f5fcd589..8876ca0adeeb 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "crowdin:download:website": "yarn crowdin:download --language fr --language ko --language pt-BR --language zh-CN --language ja", "argos:screenshot": "yarn workspace argos screenshot", "canary": "yarn canary:bumpVersion && yarn canary:publish", - "canary:version": "echo 0.0.0-`git rev-list --count HEAD`+`git rev-parse --short HEAD`", + "canary:getCoreVersion": "node -p \"require('./packages/docusaurus/package.json').version\"", + "canary:version": "echo `yarn --silent canary:getCoreVersion`-canary-`git rev-list --count HEAD`+`git rev-parse --short HEAD`", "canary:bumpVersion": "yarn lerna version `yarn --silent canary:version` --exact --no-push --yes", "canary:publish": "yarn lerna publish from-package --dist-tag canary --yes --no-verify-access", "changelog": "lerna-changelog",