mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
parent
76e2d3bf17
commit
f22aa221f2
6 changed files with 809 additions and 13 deletions
|
@ -21,15 +21,16 @@ select VERSION in patch minor major "Specific Version"
|
|||
echo
|
||||
|
||||
if [[ $REPLY =~ ^[Yy]$ || -z $REPLY ]]; then
|
||||
# bump version
|
||||
# Bump version
|
||||
cd v1
|
||||
yarn version --new-version $VERSION --no-git-tag-version
|
||||
NEW_VERSION=$(node -p "require('./package.json').version")
|
||||
|
||||
# create new branch
|
||||
# Create new branch
|
||||
git checkout -B $NEW_VERSION master
|
||||
# cut docusaurus docs version
|
||||
# Cut docusaurus docs version
|
||||
cd website && yarn $DOCS_VERSION_COMMAND $NEW_VERSION
|
||||
|
||||
|
||||
# Create commit
|
||||
git add ../
|
||||
git commit -m "v$NEW_VERSION"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue