@tahminator/pipeline 1.0.84 → 1.0.85
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.
|
@@ -26,9 +26,9 @@ export declare class VersioningClient implements IVersioningClient {
|
|
|
26
26
|
/**
|
|
27
27
|
* generate next beta version tag using a `sha`.
|
|
28
28
|
*
|
|
29
|
-
* simply finds latest version from github and generates `{version}-beta.{sha}` to it.
|
|
29
|
+
* simply finds latest version from github and generates `{version}-beta.g{sha}` to it.
|
|
30
30
|
*
|
|
31
|
-
* for example, `1.3.2-beta.
|
|
31
|
+
* for example, `1.3.2-beta.g58cf28bd`
|
|
32
32
|
*/
|
|
33
33
|
nextBeta(sha: string, ...opts: Parameters<GitHubClient["getLatestTag"]>): Promise<string>;
|
|
34
34
|
}
|
|
@@ -76,17 +76,17 @@ export class VersioningClient {
|
|
|
76
76
|
/**
|
|
77
77
|
* generate next beta version tag using a `sha`.
|
|
78
78
|
*
|
|
79
|
-
* simply finds latest version from github and generates `{version}-beta.{sha}` to it.
|
|
79
|
+
* simply finds latest version from github and generates `{version}-beta.g{sha}` to it.
|
|
80
80
|
*
|
|
81
|
-
* for example, `1.3.2-beta.
|
|
81
|
+
* for example, `1.3.2-beta.g58cf28bd`
|
|
82
82
|
*/
|
|
83
83
|
async nextBeta(sha, ...opts) {
|
|
84
84
|
const latestTag = await this.githubClient.getLatestTag(...opts);
|
|
85
85
|
if (!latestTag) {
|
|
86
|
-
console.warn(
|
|
87
|
-
return `1.0.0-beta
|
|
86
|
+
console.warn(`No latest tag yet. You should upload a tag atleast once before generating a beta tag. Defaulting to 1.0.0-beta.g${sha}`);
|
|
87
|
+
return `1.0.0-beta.g${sha}`;
|
|
88
88
|
}
|
|
89
89
|
const latest = this.parseOrThrow("latest tag from github", latestTag);
|
|
90
|
-
return `${latest.toString()}-beta
|
|
90
|
+
return `${latest.toString()}-beta.g${sha}`;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -26,11 +26,11 @@ export interface IVersioningClient extends IVersionUpdatingClient {
|
|
|
26
26
|
/**
|
|
27
27
|
* generate next beta version tag.
|
|
28
28
|
*
|
|
29
|
-
* simply finds latest version from github and generates `{version}-beta.{sha}` to it.
|
|
29
|
+
* simply finds latest version from github and generates `{version}-beta.g{sha}` to it.
|
|
30
30
|
*
|
|
31
31
|
* @note you may pass in the first 8 characters of `sha` if you choose.
|
|
32
32
|
*
|
|
33
|
-
* for example, `1.3.2-beta.
|
|
33
|
+
* for example, `1.3.2-beta.g58cf28bd`
|
|
34
34
|
*/
|
|
35
35
|
nextBeta(sha: string): Promise<string>;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"author": "Tahmid Ahmed",
|
|
5
5
|
"description": "A collection of Bun shell scripts that can be re-used in various CICD pipelines.",
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.85",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "git+https://github.com/tahminator/pipeline.git"
|
|
9
9
|
},
|