@r5n/sisyphus 0.8.1 → 0.9.0

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 CHANGED
@@ -38,19 +38,40 @@ By default `roll` only updates files and creates the release commit. Publishing,
38
38
  Create a stone. Interactive when run without positionals; non-interactive with a message and package lists:
39
39
 
40
40
  ```bash
41
- sisyphus version "feat: add auth" -m @org/auth -p @org/core
42
- sisyphus version "fix: rc fixes" -p @org/api -t beta
43
- sisyphus version --fromCommits
41
+ # Interactive
42
+ sisyphus version
43
+
44
+ # Apply one bump to every filtered package without prompts
45
+ sisyphus version --bump minor --all --filter @org/core --message "feat: update core" --yes
46
+
47
+ # Assign packages to bump groups without prompts
48
+ sisyphus version --minor @org/core,@org/api --patch @org/utils --message "feat: update workspace" --yes
49
+
50
+ # Generate stones from conventional commits
51
+ sisyphus version --fromCommits --filter @org/core --dryRun
52
+
53
+ # Create a tagged prerelease stone
54
+ sisyphus version --bump patch --all --filter @org/core --message "fix: beta repair" --tag beta --yes
44
55
  ```
45
56
 
46
- - `-M, --major` / `-m, --minor` / `-p, --patch` — comma-separated package lists
47
- - `--fromCommits` — generate stones from conventional commits since the last release (`lastStone` in config; `commits.skip` filters apply)
48
- - `-t, --tag` — prerelease tag (e.g. `beta`), applied to the computed versions
49
- - `-f, --filter` — filter workspace packages by name
50
- - `-d, --dryRun`, `-y, --yes`
57
+ **Options:**
58
+ - `-a, --all` — Select every filtered package (requires `--bump`)
59
+ - `-b, --bump` — Apply `major`, `minor`, or `patch` to every selected package
60
+ - `-d, --dryRun` — Preview without writing stones
61
+ - `-f, --filter` — Constrain interactive choices, explicit package lists, or commit analysis by package name
62
+ - `--fromCommits` — Generate stones from conventional commits instead of manual selections
63
+ - `-M, --major` — Comma-separated packages receiving a major bump
64
+ - `--message` — Stone message; required for non-interactive manual selection
65
+ - `-m, --minor` — Comma-separated packages receiving a minor bump
66
+ - `-p, --patch` — Comma-separated packages receiving a patch bump
67
+ - `-t, --tag` — Prerelease tag (alpha, beta, rc, etc.)
68
+ - `-y, --yes` — Skip confirmation
51
69
 
52
70
  Packages that depend on the bumped ones are picked up automatically and get a dependency (patch-level) bump.
53
71
 
72
+ The message and optional description can also be supplied as positional arguments. Do not combine a positional message
73
+ with `--message`.
74
+
54
75
  ### `sisyphus check`
55
76
 
56
77
  Show the root package, workspace packages, and pending stones with the versions they will produce. `--json` for machine-readable output (used in CI), `-c, --config` to include the resolved config.
@@ -61,11 +82,12 @@ Manage pending stones: `list` (`-j`, `-v`), `show <id>` (`-j`), `edit <id> -m "n
61
82
 
62
83
  ### `sisyphus roll`
63
84
 
64
- Execute a release from all pending stones: bump versions, generate changelogs, delete the stones, commit, then optionally tag, publish, push, and create a provider release. Any step failure rolls back the created commit, tags, and file changes and restores the stones.
85
+ Execute a release from all pending stones: bump versions, generate changelogs, delete the stones, commit, then optionally tag, push, publish, and create provider releases. Failures before an external operation roll back the commit, tags, file changes, and stones. Once an external operation starts, local state and a durable release ledger are preserved so the release can be reconciled and resumed.
65
86
 
66
87
  ```bash
67
88
  sisyphus roll --dryRun
68
89
  sisyphus roll -n -t -p -y
90
+ sisyphus roll --resume
69
91
  ```
70
92
 
71
93
  - `-c, --changelog` — generate changelogs (default from `changelog.generate`)
@@ -76,9 +98,16 @@ sisyphus roll -n -t -p -y
76
98
  - `--noCommit` — skip the release commit (also disables tags, push, and provider release)
77
99
  - `--preview` — write changelogs, show them, then offer to revert
78
100
  - `--publishOnly` — publish from `currentRelease` recorded by `actions release-pr`, without touching files
101
+ - `--resume` — reconcile and continue the active incomplete release
79
102
  - `-d, --dryRun`, `-y, --yes`
80
103
 
81
- Publishing builds each package (`bun run build`) and runs `npm publish --tag <tag> --access public` in its directory. Private packages (`"private": true`) are skipped. Before publishing, each `package.json` is rewritten to a clean manifest: `workspace:` specifiers are resolved against the actual workspace versions (`workspace:*` pins the exact version, `workspace:^`/`workspace:~` become ranges), `catalog:` specifiers are resolved from the root `catalog`/`catalogs`, and `devDependencies` are stripped. The original file text is restored afterward, even if publishing fails.
104
+ Provider releases require tags to be pushed to the same repository first, so normal releases must enable `--tags --push --createRelease`; publish-only releases require `--tags --createRelease` and push those exact tags before creating releases.
105
+
106
+ Publishing builds each public package, rewrites its `package.json` to a clean publish manifest, and packs an immutable tarball before any package is uploaded. `workspace:` specifiers are resolved against actual workspace versions (`workspace:*` pins the exact version and `workspace:^`/`workspace:~` become ranges), `catalog:` specifiers are resolved from the root `catalog`/`catalogs`, and `devDependencies` are stripped. The source manifest is restored after packing, even if preparation fails. Private packages (`"private": true`) are skipped.
107
+
108
+ For releases with external operations, Sisyphus stores the plan, immutable artifacts, exact Git refs, and per-operation progress below Git's worktree-specific administrative directory. `--resume` verifies an ambiguous npm upload by SHA-512 integrity, verifies an ambiguous push from exact remote refs, and verifies provider releases by tag, title, and notes. If the external system cannot confirm the expected state, resume stops rather than repeating the operation.
109
+
110
+ Npm publication requires a release commit, so it cannot be combined with `--noCommit`. Publish-only releases verify the source hash recorded by `actions release-pr`, the exact package versions, and the complete archived-stone set before creating tags or artifacts.
82
111
 
83
112
  ### `sisyphus pr`
84
113
 
@@ -111,6 +140,7 @@ Create or edit `.sisyphus/config.json`. Flag-driven when invoked directly (the i
111
140
  "tag": "latest",
112
141
  "commit": {
113
142
  "author": "r5n-bot",
143
+ "email": "r5n-bot@users.noreply.github.com",
114
144
  "message": "chore(release): {message}"
115
145
  },
116
146
  "changelog": {
@@ -146,7 +176,7 @@ Create or edit `.sisyphus/config.json`. Flag-driven when invoked directly (the i
146
176
 
147
177
  - `single` — version the root package instead of workspace packages
148
178
  - `tag` — npm dist-tag used when publishing
149
- - `commit` — release commit author/email and message template; `{message}` and `{packages}` are substituted
179
+ - `commit` — release commit author/email and message template; `{message}` and `{packages}` are substituted; a valid `email` is required whenever `author` is set
150
180
  - `changelog` — `sections` maps conventional commit types (`feat`, `fix`, `breaking`, ...) to headings; `root` adds a combined root changelog; `packageHeader`/`rootHeader` support `{emoji}`, `{version}`, `{date}`, `{packages}`
151
181
  - `commits.skip` / `pr.skip` — filters for `version --fromCommits` and `pr`
152
182
  - `release` — defaults for the corresponding `roll` flags
@@ -190,7 +220,7 @@ jobs:
190
220
  runs-on: ubuntu-latest
191
221
  if: "!startsWith(github.event.head_commit.message, 'chore(release):')"
192
222
  steps:
193
- - uses: actions/checkout@v4
223
+ - uses: actions/checkout@v7
194
224
  with:
195
225
  fetch-depth: 0
196
226
  - uses: oven-sh/setup-bun@v2