devops-helper
v1.0.2
Published
Tool to help devops to promote a branch
Downloads
289
Readme
Available scripts
For a list of available scripts and their usage run the command:
npx devops-helper --help
promote-app [REMOTE] [BRANCHES] <APP_VERSION> --dryRun
Merge all the changes of the first branch to the other branches (from left to right) for a specific app version, for me information about app version check APPVERSION.md.
If you don't follow the versioned workflow, you can provide the
--noVersionedBranch
option to skip the version checks.*BRANCHES parameters must be a valid JSON string array
Example:
- Manual branch name:
npx --yes devops-helper promote-app repository.git "[\"develop\", \"uat\", \"lut\"]" 9.99.9
- Auto detect version:
npx --yes devops-helper promote-app repository.git "[\"develop\", \"uat\", \"lut\"]"
- Without any versioned branches:
npx --yes devops-helper promote-app repository.git "[\"develop\", \"uat\", \"lut\"]" --noVersionedBranch
- Manual branch name:
Add a new script
- Place the new script in the scripts folder
- Edit the file devops-helper.ts and add the command that will invoke the script
Lint, Coverage, Test...
yarn fix
to run the linter and automatically fix your code