@trajectonomics/tooling 0.1.0-alpha.1 → 0.1.0-alpha.2
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 +16 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,14 +62,20 @@ on:
|
|
|
62
62
|
push:
|
|
63
63
|
branches: [main]
|
|
64
64
|
paths-ignore: ["**/*.md", ".agents/**", ".claude/**", ".github/**"]
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
workflow_dispatch:
|
|
66
|
+
inputs:
|
|
67
|
+
bump:
|
|
68
|
+
type: choice
|
|
69
|
+
options: [auto, patch, minor, major]
|
|
70
|
+
default: auto
|
|
67
71
|
permissions:
|
|
68
72
|
contents: write
|
|
69
73
|
id-token: write
|
|
70
74
|
jobs:
|
|
71
75
|
publish:
|
|
72
76
|
uses: trajectonomics/cicd/.github/workflows/publish.yml@v1
|
|
77
|
+
with:
|
|
78
|
+
bump: ${{ inputs.bump || 'auto' }}
|
|
73
79
|
```
|
|
74
80
|
|
|
75
81
|
`check.yml` installs Bun, runs `bun install --frozen-lockfile`, then `bun run check`. It takes
|
|
@@ -94,12 +100,15 @@ Every package uses the shared `publish.yml`, so releasing works the same everywh
|
|
|
94
100
|
| You do | Result |
|
|
95
101
|
| --- | --- |
|
|
96
102
|
| Merge to `main` (package files changed) | Publishes an **alpha**, e.g. `1.2.0-alpha.3`, dist-tag `alpha` |
|
|
97
|
-
|
|
|
103
|
+
| Run the **Release** workflow on `main` (Actions tab, Run workflow) | Publishes **stable**, dist-tag `latest`, then creates the tag `vX.Y.Z` and the GitHub release |
|
|
98
104
|
|
|
99
|
-
The
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
105
|
+
The workflow computes the version; `package.json` `version` is never edited by hand. `bump = auto`
|
|
106
|
+
reads the conventional-commit PR titles since the last stable tag (`feat:` minor, `feat!:` major,
|
|
107
|
+
anything else patch); choose `major` to cut `1.0.0`. The tag and GitHub release are created only
|
|
108
|
+
after npm accepts the version, so a failed publish leaves nothing behind. Run it from `main`;
|
|
109
|
+
any other branch fails before publishing.
|
|
110
|
+
|
|
111
|
+
From the command line: `gh workflow run release.yml --ref main -f bump=auto`.
|
|
103
112
|
|
|
104
113
|
In this repo a stable release also moves the floating `vX` tag that consumers pin to.
|
|
105
114
|
|
package/package.json
CHANGED