Skip to content

Commit e62e605

Browse files
committed
Multiple digit major, minor, patch
1 parent 5b34d92 commit e62e605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { execSync } = require("child_process");
33
const { writeFileSync, readFileSync } = require("fs");
44
const { join, basename } = require("path");
55

6-
const [, packageFromRef, versionFromRef] = /^refs\/tags\/(.+)-v(\d*\.\d(\.\d)?(-.+)?)$/.exec(process.env.GITHUB_REF ?? "") ?? [];
6+
const [, packageFromRef, versionFromRef] = /^refs\/tags\/(.+)-v(\d\d*\.\d\d*(\.\d\d*)?(-.+)?)$/.exec(process.env.GITHUB_REF ?? "") ?? [];
77
const ref = process.env.GITHUB_SHA ?? "HEAD";
88
const shortSHA = execSync(`git rev-parse --short ${ref}`).toString().trim();
99

0 commit comments

Comments
 (0)