Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Aug 1, 2018
1 parent 785cb81 commit e87969a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions admin/prerelease.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Steps

1. Ensure that `origin` remote is your Docusaurus fork and `upstream` is Docusaurus original repository. Example
1. Ensure that `origin` remote is your Docusaurus fork and `upstream` is Docusaurus original repository.

```bash
$ git remote -v
Expand All @@ -14,14 +14,14 @@ upstream https://github.com/facebook/Docusaurus.git (fetch)
upstream https://github.com/facebook/Docusaurus.git (push)
```

2. Pull latest change from Docusaurus repository
2. Pull latest changes from Docusaurus repository.

```bash
$ git fetch upstream && git checkout master && git merge upstream/master
```

2. Modify `CHANGELOG.md` and other necessary files. Do not commit yet.
3. Run `bash scripts/prerelease.sh` to create a commit for the new version pre-release.
2. Modify `CHANGELOG.md` and other necessary files. Do not commit the changes.
3. Run `bash scripts/prerelease.sh`.
4. Create your pull request on GitHub.

<img width="629" alt="pull request" src="https://user-images.githubusercontent.com/17883920/43393765-ccb050ac-942a-11e8-94e8-d585034fa064.PNG">
3 changes: 1 addition & 2 deletions scripts/prerelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@ select VERSION in patch minor major "Specific Version"
cd website && yarn $DOCS_VERSION_COMMAND $NEW_VERSION

# Create commit
echo "Creating commit for v${NEW_VERSION}"
git add .
git commit -m "v$NEW_VERSION"
git push origin $NEW_VERSION
echo "✅ Release PR created"
echo "Finished"
else
echo Cancelled
fi
Expand Down

0 comments on commit e87969a

Please sign in to comment.