@b12k/mvm 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/skip.js +2 -2
- package/package.json +1 -1
package/dist/skip.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
log({
|
|
21
21
|
config
|
|
22
22
|
});
|
|
23
|
-
const relatedTags = (0, _nodeChildProcess.execSync)('git tag').toString().split('\n').filter((tag)=>tag.
|
|
23
|
+
const relatedTags = (0, _nodeChildProcess.execSync)('git tag').toString().split('\n').filter((tag)=>tag.match(new RegExp(`${name}-v\\d+.\\d+.\\d+$`)));
|
|
24
24
|
if (relatedTags.length === 0) {
|
|
25
25
|
log({
|
|
26
26
|
message: 'no related tags found',
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
log({
|
|
55
55
|
workspaceName
|
|
56
56
|
});
|
|
57
|
-
const touchedFiles = (0, _nodeChildProcess.execSync)(`git diff --name-only ${latestTag}..HEAD`).toString().split('\n').filter((file)=>Boolean(file) && file.includes(workspaceName));
|
|
57
|
+
const touchedFiles = (0, _nodeChildProcess.execSync)(`git diff --name-only ${latestTag}..HEAD`).toString().split('\n').filter((file)=>Boolean(file) && file.includes(`${workspaceName}/`));
|
|
58
58
|
if (touchedFiles.length > 0) {
|
|
59
59
|
log({
|
|
60
60
|
message: 'files touched since last release',
|