@r5n/sisyphus 0.8.2 → 0.9.1
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 +42 -11
- package/dist/cli.js +187 -173
- package/dist/templates/github/sis-release.yml +47 -3
- package/dist/templates/gitlab/sis-release.yml +26 -2
- package/package.json +5 -1
- package/schema.json +143 -0
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
|
-
|
|
42
|
-
sisyphus version
|
|
43
|
-
|
|
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
|
-
|
|
47
|
-
-
|
|
48
|
-
- `-
|
|
49
|
-
- `-
|
|
50
|
-
- `-
|
|
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,
|
|
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,17 @@ 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
|
|
102
|
+
- `--abort` — abandon the incomplete release if nothing external has started; releases with external progress must use `--resume`
|
|
79
103
|
- `-d, --dryRun`, `-y, --yes`
|
|
80
104
|
|
|
81
|
-
|
|
105
|
+
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.
|
|
106
|
+
|
|
107
|
+
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.
|
|
108
|
+
|
|
109
|
+
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.
|
|
110
|
+
|
|
111
|
+
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
112
|
|
|
83
113
|
### `sisyphus pr`
|
|
84
114
|
|
|
@@ -111,6 +141,7 @@ Create or edit `.sisyphus/config.json`. Flag-driven when invoked directly (the i
|
|
|
111
141
|
"tag": "latest",
|
|
112
142
|
"commit": {
|
|
113
143
|
"author": "r5n-bot",
|
|
144
|
+
"email": "r5n-bot@users.noreply.github.com",
|
|
114
145
|
"message": "chore(release): {message}"
|
|
115
146
|
},
|
|
116
147
|
"changelog": {
|
|
@@ -146,7 +177,7 @@ Create or edit `.sisyphus/config.json`. Flag-driven when invoked directly (the i
|
|
|
146
177
|
|
|
147
178
|
- `single` — version the root package instead of workspace packages
|
|
148
179
|
- `tag` — npm dist-tag used when publishing
|
|
149
|
-
- `commit` — release commit author/email and message template; `{message}` and `{packages}` are substituted
|
|
180
|
+
- `commit` — release commit author/email and message template; `{message}` and `{packages}` are substituted; a valid `email` is required whenever `author` is set
|
|
150
181
|
- `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
182
|
- `commits.skip` / `pr.skip` — filters for `version --fromCommits` and `pr`
|
|
152
183
|
- `release` — defaults for the corresponding `roll` flags
|