Skip to content

Commit

Permalink
Add release instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed May 31, 2022
1 parent 6e326d7 commit c5acd57
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ yarn run extract-messages

To add a new language, edit [src/locales/i18n.ts](src/locales/i18n.ts) and [i18next-scanner.config.js](internals/extractMessages/i18next-scanner.config.js), then run the command above once more.

## Preparing a Release

[Release process doc](docs/release-process.md)

## License

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FEsya%2Foasis-wallet.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FEsya%2Foasis-wallet?ref=badge_large)
63 changes: 63 additions & 0 deletions docs/release-process.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Release Process

## Web wallet

Staging:
- checkout master branch
- build
- deploy to <https://wallet.stg.oasisprotocol.org/>

Production:
- ensure <https://wallet.stg.oasisprotocol.org/> works
- especially features related to changes
- look at CSP errors (expect one error: blocked `eval` in `inquire`)
- see the footer for what commit is deployed
- update stable branch to that commit
- build
- deploy to <https://wallet.oasisprotocol.org/>

### Build

```sh
yarn install --frozen-lockfile
yarn build # uses oasisscan backend
# or REACT_APP_BACKEND=oasismonitor yarn build
```

### Deploy

Manually deploy `./build/` folder by following <https://github.com/oasisprotocol/oasis-wallet-web/wiki/Deployment-on-AWS>.

Verify deployed version by opening the page in incognito (no cache) - it is displayed in the footer.

Update Content-Security-Policy header.

```sh
yarn print-csp

# See old deployed CSP
curl --head https://wallet.stg.oasisprotocol.org/ -s | grep content-security-policy
curl --head https://wallet.oasisprotocol.org/ -s | grep content-security-policy
```


## TODO: Extension wallet

- Update version in `manifest.json`
- Changelog
- Commit
- Make PR and merge
- Git tag
- Build

```sh
VERSION=`cat extension/src/manifest.json | jq .version -r`
COMMIT=`git rev-parse --short HEAD`
yarn install --frozen-lockfile
yarn build:ext
zip -r oasis-wallet-$VERSION-$COMMIT.zip build-ext/
```

- GitHub pre-release with zip file
- Chrome store
- Update pre-release

0 comments on commit c5acd57

Please sign in to comment.