@tahminator/pipeline 1.0.83 → 1.0.84-beta.g80e13bf0
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/README.md +17 -0
- package/dist/versioning/client.d.ts +2 -2
- package/dist/versioning/client.js +5 -5
- package/dist/versioning/types.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ Jump to client documentation
|
|
|
58
58
|
- [`GitHubClient`](#githubclient)
|
|
59
59
|
- [`DockerClient`](#dockerclient)
|
|
60
60
|
- [`ProtobufCompilerClient`](#protobufcompilerclient)
|
|
61
|
+
- [Setup action versions](#setup-action-versions)
|
|
61
62
|
- [`NPMClient`](#npmclient)
|
|
62
63
|
- [`SonarScannerClient`](#sonarscannerclient)
|
|
63
64
|
- [`Utils`](#utils)
|
|
@@ -226,6 +227,22 @@ In CI, enable the setup action's protobuf dependency installer so that you don't
|
|
|
226
227
|
INSTALL_PROTO_DEPENDENCIES: "true"
|
|
227
228
|
```
|
|
228
229
|
|
|
230
|
+
#### Setup action versions
|
|
231
|
+
|
|
232
|
+
View the [action file](./actions/setup/action.yaml) for all available inputs.
|
|
233
|
+
|
|
234
|
+
```yaml
|
|
235
|
+
- uses: tahminator/pipeline/actions/setup@<version>
|
|
236
|
+
with:
|
|
237
|
+
SECRETS: ${{ toJSON(secrets) }} # will inject all secrets to env without having to explicitly trigger each one
|
|
238
|
+
INSTALL_SOPS: "true"
|
|
239
|
+
SOPS_VERSION: "3.9.4"
|
|
240
|
+
INSTALL_PROTO_DEPENDENCIES: "true"
|
|
241
|
+
CARGO_PACKAGES: |
|
|
242
|
+
cargo-tarpaulin@0.32.8
|
|
243
|
+
cargo-nextest@0.9.100
|
|
244
|
+
```
|
|
245
|
+
|
|
229
246
|
### `NPMClient`
|
|
230
247
|
|
|
231
248
|
Interface with NPM registry in order to publish packages to `npmjs.com`
|
|
@@ -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.84-beta.g80e13bf0",
|
|
7
7
|
"repository": {
|
|
8
8
|
"url": "git+https://github.com/tahminator/pipeline.git"
|
|
9
9
|
},
|