mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +02:00
chore: update prerelease.sh & prerelease.md (#886)
This commit is contained in:
parent
edb364ad02
commit
89980bc10d
2 changed files with 4 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
# Prereleasing New Version of Docusaurus
|
||||
|
||||
[](https://asciinema.org/a/hZ7NNJPcgtdvzm5tMLLfHflMD)
|
||||

|
||||
|
||||
# Steps
|
||||
|
||||
|
|
|
@ -26,15 +26,14 @@ select VERSION in patch minor major "Specific Version"
|
|||
NEW_VERSION=$(node -p "require('./package.json').version")
|
||||
|
||||
# create new branch
|
||||
git checkout -b $NEW_VERSION master
|
||||
|
||||
git checkout -B $NEW_VERSION master
|
||||
# cut docusaurus docs version
|
||||
cd website && yarn $DOCS_VERSION_COMMAND $NEW_VERSION
|
||||
|
||||
# Create commit
|
||||
git add .
|
||||
git add ../
|
||||
git commit -m "v$NEW_VERSION"
|
||||
git push origin $NEW_VERSION
|
||||
git push -f origin $NEW_VERSION
|
||||
echo "Finished"
|
||||
else
|
||||
echo Cancelled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue