should-semantic-release
Advanced tools
Comparing version 0.0.4 to 0.1.0
@@ -1,2 +0,2 @@ | ||
import { parseArgs } from "node:util"; | ||
import { parseArgs } from "@pkgjs/parseargs"; | ||
import { shouldSemanticRelease } from "./shouldSemanticRelease.js"; | ||
@@ -3,0 +3,0 @@ export async function shouldSemanticReleaseCLI(args) { |
@@ -1,2 +0,2 @@ | ||
const tester = /^(?:chore(?:\(.*\))?:?)?\s*release/; | ||
const tester = /^(?:chore(?:\(.*\))?:?)?\s*release|v?\d+\.\d+\.\d+/; | ||
export function isReleaseCommit(message) { | ||
@@ -3,0 +3,0 @@ return tester.test(message); |
@@ -15,3 +15,3 @@ import conventionalCommitsParser from "conventional-commits-parser"; | ||
log(`Checking commit: ${message}`); | ||
// If the commit is a release, we should only release if other commits have been found | ||
// If we've hit a release commit, we know we don't need to release | ||
if (isReleaseCommit(message)) { | ||
@@ -18,0 +18,0 @@ log(`Found a release commit. Returning false.`); |
@@ -5,2 +5,3 @@ { | ||
"dependencies": { | ||
"@pkgjs/parseargs": "^0.10.0", | ||
"conventional-commits-parser": "^3.2.4" | ||
@@ -11,5 +12,6 @@ }, | ||
"@types/conventional-commits-parser": "^3.0.3", | ||
"@types/pkgjs__parseargs": "^0.10.0", | ||
"@typescript-eslint/eslint-plugin": "^5.48.0", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"@vitest/coverage-istanbul": "^0.28.0", | ||
"@vitest/coverage-istanbul": "^0.29.0", | ||
"cspell": "^6.18.1", | ||
@@ -26,7 +28,7 @@ "eslint": "^8.31.0", | ||
"eslint-plugin-typescript-sort-keys": "^2.1.0", | ||
"eslint-plugin-vitest": "^0.0.32", | ||
"eslint-plugin-vitest": "^0.0.57", | ||
"husky": "^8.0.3", | ||
"jsonc-eslint-parser": "^2.1.0", | ||
"lint-staged": "^13.1.0", | ||
"markdownlint": "^0.27.0", | ||
"markdownlint": "^0.28.0", | ||
"markdownlint-cli": "^0.33.0", | ||
@@ -40,4 +42,4 @@ "npm-package-json-lint": "^6.4.0", | ||
"sentences-per-line": "^0.2.1", | ||
"typescript": "^4.9.4", | ||
"vitest": "^0.28.0" | ||
"typescript": "^5.0.0", | ||
"vitest": "^0.29.0" | ||
}, | ||
@@ -53,3 +55,3 @@ "engines": { | ||
"name": "should-semantic-release", | ||
"packageManager": "pnpm@7.26.3", | ||
"packageManager": "pnpm@7.30.5", | ||
"repository": { | ||
@@ -72,3 +74,3 @@ "type": "git", | ||
"type": "module", | ||
"version": "0.0.4" | ||
"version": "0.1.0" | ||
} |
@@ -38,12 +38,4 @@ <h1 align="center">Should Semantic Release</h1> | ||
This can be useful, for example, to [prevent a `release-it` release](https://github.com/release-it/release-it/issues/969): | ||
This can be useful, for example, to [prevent a `release-it` release](https://github.com/release-it/release-it/issues/969). | ||
```json | ||
{ | ||
"hooks": { | ||
"before:bump": "if ! npx should-semantic-release ; then exit 1 ; fi" | ||
} | ||
} | ||
``` | ||
`should-semantic-release` accepts the following CLI flag: | ||
@@ -50,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
17440
2
31
112
+ Added@pkgjs/parseargs@^0.10.0
+ Added@pkgjs/parseargs@0.10.0(transitive)