@pablozaiden/installer 0.0.5 → 0.0.7
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 +32 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -26,6 +26,36 @@ Supported targets are:
|
|
|
26
26
|
|
|
27
27
|
Tags may be provided as `1.2.3` or `v1.2.3`; release assets are always resolved with the `v` tag form published by GitHub releases.
|
|
28
28
|
|
|
29
|
+
## Reusable build version action
|
|
30
|
+
|
|
31
|
+
Use the shared action to resolve the version embedded in a build:
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
- name: Resolve build version
|
|
35
|
+
id: version
|
|
36
|
+
uses: pablozaiden/installer/.github/actions/resolve-version@main
|
|
37
|
+
with:
|
|
38
|
+
mode: main
|
|
39
|
+
github_token: ${{ github.token }}
|
|
40
|
+
update_package_version: true
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The action exposes `steps.version.outputs.version` and
|
|
44
|
+
`steps.version.outputs.base_version`. In `release` mode, it removes the leading
|
|
45
|
+
`v` from `release_tag` (or `GITHUB_REF_NAME`). In `main` mode, it reads the
|
|
46
|
+
latest published release, increments its patch component, and appends the UTC
|
|
47
|
+
timestamp and seven-character commit SHA:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
8.5.9 -> 8.5.10-main-2026-07-11-14-48-abcdef1
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If the repository has no published release, the base version is `0.0.0`, so
|
|
54
|
+
the first main build is `0.0.1-main-<timestamp>-<short-sha>`. Set
|
|
55
|
+
`latest_release_tag` when the release lookup must be supplied explicitly.
|
|
56
|
+
Pin the action to an immutable commit in production workflows instead of
|
|
57
|
+
using `main`.
|
|
58
|
+
|
|
29
59
|
## Generic one-line installer
|
|
30
60
|
|
|
31
61
|
Use the installer directly from this repository:
|
|
@@ -290,6 +320,8 @@ Manual `workflow_dispatch` publishes with the `unstable` tag.
|
|
|
290
320
|
|
|
291
321
|
## Development
|
|
292
322
|
|
|
323
|
+
This package type-checks with TypeScript 7.
|
|
324
|
+
|
|
293
325
|
```bash
|
|
294
326
|
bun install
|
|
295
327
|
bun run build
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pablozaiden/installer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Reusable GitHub release binary installer and updater utilities",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"test": "bun test"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/bun": "
|
|
36
|
+
"@types/bun": "^1.3.13",
|
|
37
|
+
"typescript": "^7.0.2"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"typescript": "^
|
|
40
|
+
"typescript": "^7.0.0"
|
|
40
41
|
}
|
|
41
42
|
}
|