Skip to content

Commit 470f1a6

Browse files
Merge pull request #329 from technote-space/release/next-v4.2.3
release: v4.2.4
2 parents ca999ec + e9726c5 commit 470f1a6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "4.2.3",
3+
"version": "4.2.4",
44
"description": "Helper for GitHub Action.",
55
"keywords": [
66
"github",

src/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ export const normalizeVersion = (version: string, options?: { fill?: boolean; cu
7878

7979
export const isValidSemanticVersioning = (version: string, strict?: boolean): boolean => parseVersion(version, {strict}) !== undefined;
8080

81+
/* istanbul ignore next */
82+
/*
83+
* @deprecated Use isValidSemanticVersioning
84+
*/
85+
export const isSemanticVersioningTagName = (tagName: string): boolean => /^v?\d+(\.\d+)*$/i.test(tagName);
86+
8187
export const isRef = (ref: string | RefObject): boolean => /^refs\//.test(getRef(ref));
8288

8389
export const isBranch = (ref: string | RefObject): boolean => /^refs\/heads\//.test(getRef(ref));

0 commit comments

Comments
 (0)