We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b34d92 commit e62e605Copy full SHA for e62e605
publish.js
@@ -3,7 +3,7 @@ const { execSync } = require("child_process");
3
const { writeFileSync, readFileSync } = require("fs");
4
const { join, basename } = require("path");
5
6
-const [, packageFromRef, versionFromRef] = /^refs\/tags\/(.+)-v(\d*\.\d(\.\d)?(-.+)?)$/.exec(process.env.GITHUB_REF ?? "") ?? [];
+const [, packageFromRef, versionFromRef] = /^refs\/tags\/(.+)-v(\d\d*\.\d\d*(\.\d\d*)?(-.+)?)$/.exec(process.env.GITHUB_REF ?? "") ?? [];
7
const ref = process.env.GITHUB_SHA ?? "HEAD";
8
const shortSHA = execSync(`git rev-parse --short ${ref}`).toString().trim();
9
0 commit comments