Deployment
Deployment is done with the following steps
-
Change version in
package.json
(to the target version) - use branchrelease/v{x.y.z}
-
Run
npm i
in the root directory as well as inexample-preact
,example-vanilla
, andexample-react
directories -
Update version in docs
For minor version release
- update version in
docs/docs.json
file - update directory name of
docs/v{oldVersion}
todocs/v{newVersion}
- make sure to update all references to the old version in the
docs/docs.json
file
For major version release
- create a new directory in
docs
calledv{newVersion}
- copy all files from
docs/v{oldVersion}
todocs/v{newVersion}
- create a new version entry in
docs/docs.json
file - write upgrade guide and put it in the docs
-
Update version in
InstallTabs.tsx::no build
,example-preact/index.html
,README.md
andexample-preact/src/App.tsx
-
Verify if
importer/storage.ts:DB_VERSION
needs to be bumped. It should be bumped anytime the release contains any breaking changes toImporterState
. If it is true, increment theDB_VERSION
. -
Create a PR in the repository called
Release v{x.y.z}
-
Run
npm publish
in the root directory, you can use--dry-run
flag to test the deployment -
Create a new release in Github - https://github.com/HelloCSV/HelloCSV/releases. Remember about creating a tag (
v{x.y.z}
) and writing release notes. -
Merge
main
toproduction
branch - this would trigger docs deployment to Mintlify -
Merge the automated PR ‘Sync production to main’ to keep the
main
branch in sync with theproduction
branch