There are 2 crates/binaries/npm packages in this repository:
create
dir containscreate-comit-app
binary and npm packagescripts
dir containscomit-scripts
binary and npm package
The version of the Rust crate and corresponding npm must always stay aligned.
E.g., scripts/Cargo.toml
and scripts/npm/package.json
must have the same version.
create-comit-app
version bump must be at least as significant as comit-scripts
version bump.
E.g. if comit-scripts
has a MINOR version bump than create-comit-app
that includes the new comit-scripts
version must have a MINOR or MAJOR version bump.
The dependencies are as followed:
create-comit-app
contains examples.- These examples depends on a specific version of
comit-scripts
Hence, create-comit-app
depends on comit-scripts
.
To release a new version X.Y.Z
of create-comit-app
:
- Create new
release/create/X.Y.Z
git branch frommaster
, - Bump version in
create/Cargo.toml
, - Run
cargo build
to updateCargo.lock
file, - Bump version in
create/npm/package.json
, - Update
create/CHANGELOG.md
file, - Create commit with title
Release create-comit-app X.Y.Z
- Open Pull Request,
- Wait until checks pass and PR is approved,
- Tag release commit
git tag create-comit-app-X.Y.Z
, - Push tag:
git push --tags
, - Wait for GitHub Action to proceed with binary and npm release,
- Merge PR.
To release a new version X.Y.Z
of comit-scripts
:
- Create new
release/scripts/X.Y.Z
git branch frommaster
, - Bump version in
scripts/Cargo.toml
, - Run
cargo build
to updateCargo.lock
file, - Bump version in
scripts/npm/package.json
, - Update
scripts/CHANGELOG.md
file, - Create commit with title
Release comit-scripts X.Y.Z
- Open Pull Request,
- Wait until checks pass and PR is approved,
- Tag release commit
git tag comit-scripts-X.Y.Z
, - Push tag:
git push --tags
, - Wait for GitHub Action to proceed with binary and npm release,
- Merge PR, pull master locally:
git checkout master && git pull master
- Create new branch:
git checkout -b comit-scripts-X.Y.Z
- Update
comit-scripts
version in thepackage.json
file of allcreate/new_project/examples
, - Run
yarn install
in each example folder to updateyarn.lock
files, - Update
comit-scripts
version innew_projectpackage.json
, - Do a PR as usual,
- Once merged, proceed with release of
create-comit-app
as per Releasingcreate-comit-app
.