fix: fix canary release version name (#5295)

This commit is contained in:
Sébastien Lorber 2021-08-05 14:19:58 +02:00 committed by GitHub
parent 0a668366c2
commit b5ecf270d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ jobs:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed to get the commit number with "git rev-list --count HEAD"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:

View file

@ -32,7 +32,7 @@
"crowdin:upload:v2": "crowdin upload sources --config ./crowdin-v2.yaml",
"crowdin:download:v2": "crowdin download --config ./crowdin-v2.yaml",
"canary": "yarn canary:bumpVersion && yarn canary:publish",
"canary:version": "echo `node -e \"console.log(require('./packages/docusaurus/package.json').version)\"`.`git rev-list --count HEAD`.`git rev-parse --short HEAD`",
"canary:version": "echo 0.0.0-`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",