Skip to content

Commit

Permalink
chore: update release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Jan 25, 2024
1 parent 28c1a3e commit 2427828
Showing 1 changed file with 57 additions and 4 deletions.
61 changes: 57 additions & 4 deletions docs/release-procedure.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,60 @@ https://safe-apps.dev.5afe.dev

Once we are ready with what we have on `development` we recommend a code freeze just in case someone else merges a new feature.

* Create a PR to merge `development` into `main`
* Once the changes are on `main`, an action will create a new branch `main-bump-versions` creating the changelogs that will need to be merged to `main` AND `development`
* After that an action has to be manually run on the `main` branch ([Action](https://github.com/safe-global/safe-react-apps/actions/workflows/deployment.yml))
* Only when run on `main` it will upload the bundles to the DevOps system and have the deployment ready
### Merge development into main
* Create a PR to merge `development` into `main` and get it approved
* Switch to the main branch and make sure it's up to date:
```
git checkout main
git fetch --all
git reset --hard origin/main
```
* Pull from the development branch
```
git pull origin development
```
* Push:
```
git push
```

### Start deploy workflow
* Once the changes are on `main`, you have to manually run an action on the `main` branch ([Action](https://github.com/safe-global/safe-react-apps/actions/workflows/deployment.yml)). This will create a new branch `main-bump-versions` with changelogs and updated package versions
* Only when run on `main` it will upload the bundles to the DevOps system and have the deployment ready
* This needs to be merged to `main` AND `development`

### Merge main-bump-versions
* Create a PR from `main-bump-versions` to `main` and get it approved
* Switch to the `main` branch and make sure it's up to date:
```
git checkout main
git fetch --all
git reset --hard origin/main
```
* Pull from the `main-bump-versions` branch
```
git pull origin main-bump-versions
```
* Push:
```
git push
```
* Create a PR from `main` to `development` and get it approved
* Switch to the `development` branch and make sure it's up to date:
```
git checkout development
git fetch --all
git reset --hard origin/development
```
* Pull from the `main` branch
```
git pull origin main
```
* Push:
```
git push
```

### Deploy the app
* Once everything is done there should be a new tag added [Tags](https://github.com/safe-global/safe-react-apps/tags)
* Select the Tag (version) you want to have deployed to prod and ping DevOps

0 comments on commit 2427828

Please sign in to comment.