Skip to content

Commit

Permalink
chore: update prerelease.sh & prerelease.md (facebook#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored Aug 3, 2018
1 parent edb364a commit 89980bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion admin/prerelease.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prereleasing New Version of Docusaurus

[![asciicast](https://asciinema.org/a/hZ7NNJPcgtdvzm5tMLLfHflMD.png)](https://asciinema.org/a/hZ7NNJPcgtdvzm5tMLLfHflMD)
![demo](http://res.cloudinary.com/rengorum/image/upload/v1533297353/demo.gif)

# Steps

Expand Down
7 changes: 3 additions & 4 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89980bc

Please sign in to comment.