Comparing version 0.0.6 to 0.1.0
{ | ||
"name": "git-ensure", | ||
"version": "0.0.6", | ||
"description": "Ensure git status matches with conditions before continuing your workflow.", | ||
"version": "0.1.0", | ||
"description": "Ensure git status before continuing.", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.mjs", |
@@ -1,9 +0,17 @@ | ||
# git-ensure | ||
<h1 align="center">git-ensure</h1> | ||
Ensure git status matches with conditions before continuing your workflow. | ||
<p align="center"> | ||
Ensure git status before continuing. | ||
</p> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/git-ensure"><img src="https://img.shields.io/npm/v/git-ensure?color=a1b858&label=" alt="NPM version"></a> | ||
</p> | ||
![image](https://user-images.githubusercontent.com/11247099/108178559-88630080-713f-11eb-92b5-fbd47d39f202.png) | ||
## Usage | ||
```bash | ||
npx git-ensure --branch main --no-head --no-behind --clean && <your-workflow> | ||
npx git-ensure --branch main --no-head --no-behind --clean && <your-commands> | ||
``` | ||
@@ -14,6 +22,6 @@ | ||
```bash | ||
npx git-ensure -a && <your-workflow> | ||
npx git-ensure -a && <your-commands> | ||
``` | ||
If the any of the connditions fail, a `process.exit(1)` will be returned and prevent you from continue the workflow. | ||
If any of the conditions fail, a `process.exit(1)` will be returned and prevent you from continuing the following workflows. | ||
@@ -20,0 +28,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9829
30