@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.
Files changed (2) hide show
  1. package/README.md +16 -7
  2. 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
- release:
66
- types: [published]
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
- | Publish a **GitHub Release** with a new tag `vX.Y.Z` on `main` | Publishes **stable** `X.Y.Z`, dist-tag `latest` |
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 release tag is the version; `package.json` `version` is never edited by hand. Alphas count up
100
- from the last stable tag, and PR titles are conventional commits because they pick the alpha's base
101
- (`feat:` minor, `feat!:` major, anything else patch). A release tag must look like `v1.2.3` and be on
102
- `main`, or the run fails before publishing.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trajectonomics/tooling",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Shared Biome and TypeScript presets, GritQL plugins, and reusable GitHub Actions workflows for Trajectonomics",
5
5
  "license": "MIT",
6
6
  "repository": {