-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,38 @@ | ||
# Deployment Guide | ||
|
||
Just run | ||
## Prepare to deploy | ||
|
||
- From `master` create `relese` branch. | ||
- Checkout `release` branch. | ||
- Update `README.md` and `package.json` to the new version. | ||
- Commit changes. | ||
- Create tag and release targeting `release` branch. | ||
- Merge `release` to `master`. | ||
- Delete `release` branch. | ||
|
||
|
||
## (Manual) Deploy | ||
|
||
- Checkout version just tagged in the previous steps | ||
- Update cloud resources with: | ||
|
||
```shell script | ||
amplify env checkout prod | ||
|
||
# If there are API changes | ||
amplify push | ||
|
||
npm run build | ||
|
||
firebase deploy -m "v0.0.4 Add custom date filter" | ||
``` | ||
|
||
That's it. Enjoy! | ||
- Test locally | ||
|
||
--- | ||
```shell script | ||
npm run build | ||
firebase serve --only hosting | ||
``` | ||
|
||
Wanna test before deploying? Just run: | ||
- Deploy code | ||
|
||
```shell script | ||
firebase serve --only hosting | ||
npm run build | ||
firebase deploy -m "v0.0.5 Account picker in tree view" | ||
``` |