@r5n/sisyphus 0.4.8 β 0.5.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/LICENSE +1 -201
- package/README.md +147 -365
- package/dist/cli.js +201 -219
- package/dist/templates/github/sis-create-stone.yml +88 -0
- package/dist/templates/github/sis-release.yml +30 -0
- package/dist/templates/gitlab/sis-create-stone.yml +49 -0
- package/dist/templates/gitlab/sis-release.yml +13 -0
- package/package.json +6 -12
- package/schema.json +0 -112
package/README.md
CHANGED
|
@@ -1,345 +1,166 @@
|
|
|
1
|
-
|
|
2
|
-
<a href="https://github.com/r5n-labs">
|
|
3
|
-
<img src="https://avatars.githubusercontent.com/u/99986752?s=400&v=4" alt="R5N Labs" width="100" height="100">
|
|
4
|
-
</a>
|
|
5
|
-
|
|
6
|
-
<p><strong>Version Control That Actually Makes Sense πͺ¨</strong></p>
|
|
7
|
-
<p><em>πͺ¨ Because versioning shouldn't feel like pushing a boulder uphill</em></p>
|
|
8
|
-
|
|
9
|
-
<h1>Sisyphus</h1>
|
|
10
|
-
|
|
11
|
-
<p>
|
|
12
|
-
<a href="https://www.npmjs.com/package/@r5n/sisyphus">
|
|
13
|
-
<img src="https://img.shields.io/npm/v/@r5n/sisyphus.svg" alt="npm version">
|
|
14
|
-
</a>
|
|
15
|
-
<a href="https://github.com/r5n-labs/clis/blob/main/packages/sisyphus/LICENSE">
|
|
16
|
-
<img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License">
|
|
17
|
-
</a>
|
|
18
|
-
<img src="https://img.shields.io/badge/bundle%20size-~80KB-green.svg" alt="Bundle Size">
|
|
19
|
-
</p>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Overview
|
|
25
|
-
|
|
26
|
-
Ever wished you could stack up version changes like a todo list and release them all at once? That's Sisyphus. It revolutionizes how you handle versioning in monoreposβno more juggling multiple PRs or manual version bumps.
|
|
27
|
-
|
|
28
|
-
### β¨ Why You'll Love It
|
|
1
|
+
# Sisyphus
|
|
29
2
|
|
|
30
|
-
|
|
31
|
-
- π§ **Dependency Magic** - Updates related packages automatically (it just knows!)
|
|
32
|
-
- π **Changelogs That Write Themselves** - From commits to beautiful docs instantly
|
|
33
|
-
- π **One Command to Rule Them All** - Version, build, publish, tag - done!
|
|
34
|
-
- π·οΈ **Alpha to Stable Pipeline** - Smart prerelease promotion workflow
|
|
35
|
-
- π― **80KB of Excellence** - Faster than your npm install
|
|
36
|
-
- π **GitHub Native** - Creates releases and tags automatically
|
|
3
|
+
<div align="center">
|
|
37
4
|
|
|
38
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@r5n/sisyphus)
|
|
6
|
+
[](./LICENSE)
|
|
7
|
+

|
|
39
8
|
|
|
40
|
-
|
|
41
|
-
<summary><strong>The stone system in action</strong></summary>
|
|
9
|
+
Monorepo versioning with changesets ("stones").
|
|
42
10
|
|
|
43
|
-
|
|
44
|
-
$ sisyphus init
|
|
45
|
-
β Initialize Sisyphus in single or multi package mode? Β· multi
|
|
46
|
-
β Which packages should be ignored? Β· @internal/scripts
|
|
47
|
-
β Select a tag for releases Β· latest
|
|
48
|
-
β Enable commit configuration? Β· Yes
|
|
49
|
-
β Commit message template Β· chore(release): $\{message}
|
|
50
|
-
β Enable changelog generation? Β· Yes
|
|
51
|
-
|
|
52
|
-
β¨ Sisyphus v0.3.42 is setup to roll stones.
|
|
53
|
-
|
|
54
|
-
$ sisyphus version
|
|
55
|
-
β Select packages for versioning:
|
|
56
|
-
β @myapp/auth
|
|
57
|
-
β @myapp/core
|
|
58
|
-
β― @myapp/utils
|
|
59
|
-
β Select bump type Β· minor
|
|
60
|
-
β Provide a summary for these changes Β· Add OAuth2 authentication
|
|
61
|
-
β Are you sure you want to create this stone? Β· Yes
|
|
62
|
-
|
|
63
|
-
β Stone created: proud-mountain
|
|
64
|
-
Location: .sisyphus/stones/proud-mountain.md
|
|
65
|
-
```
|
|
66
|
-
</details>
|
|
11
|
+
</div>
|
|
67
12
|
|
|
68
|
-
|
|
69
|
-
<summary><strong>Smart dependency tracking</strong></summary>
|
|
13
|
+
## Quick Start
|
|
70
14
|
|
|
71
15
|
```bash
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
1. proud-mountain
|
|
76
|
-
Created: 2 days ago
|
|
77
|
-
Message: Add OAuth2 authentication
|
|
78
|
-
|
|
79
|
-
Package changes:
|
|
80
|
-
β’ @myapp/auth: 1.2.0 β 1.3.0 (minor)
|
|
81
|
-
β’ @myapp/core: 2.1.0 β 2.1.1 (dependency)
|
|
16
|
+
# Install
|
|
17
|
+
bun add -g @r5n/sisyphus
|
|
82
18
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
Message: Breaking API changes
|
|
19
|
+
# Initialize
|
|
20
|
+
sisyphus init
|
|
86
21
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
β’ @myapp/cli: 1.0.0 β 2.0.0 (dependency)
|
|
90
|
-
β’ @myapp/sdk: 2.5.0 β 3.0.0 (dependency)
|
|
22
|
+
# Create a version "stone"
|
|
23
|
+
sisyphus version
|
|
91
24
|
|
|
92
|
-
|
|
93
|
-
|
|
25
|
+
# Release
|
|
26
|
+
sisyphus roll --npm --github
|
|
94
27
|
```
|
|
95
|
-
</details>
|
|
96
|
-
|
|
97
|
-
<details>
|
|
98
|
-
<summary><strong>One command release</strong></summary>
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
$ sisyphus roll --publish --github --changelog
|
|
102
|
-
πͺ¨ Rolling stones...
|
|
103
|
-
|
|
104
|
-
Processing 2 stones:
|
|
105
|
-
β’ proud-mountain
|
|
106
|
-
β’ gentle-river
|
|
107
28
|
|
|
108
|
-
|
|
109
|
-
β @myapp/auth: 1.2.0 β 1.3.0
|
|
110
|
-
β @myapp/core: 2.1.0 β 2.1.1
|
|
111
|
-
β @myapp/api: 3.2.0 β 4.0.0
|
|
112
|
-
β @myapp/cli: 1.0.0 β 2.0.0
|
|
113
|
-
β @myapp/sdk: 2.5.0 β 3.0.0
|
|
29
|
+
## Why Stones?
|
|
114
30
|
|
|
115
|
-
|
|
116
|
-
β Updated 5 CHANGELOG.md files
|
|
117
|
-
β Generated root CHANGELOG.md
|
|
31
|
+
Traditional versioning forces immediate releases. Stones let you stack changes and release when ready:
|
|
118
32
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
π·οΈ Creating git tags...
|
|
123
|
-
β Tagged 5 packages
|
|
124
|
-
β Created release tag: v4.0.0
|
|
33
|
+
```bash
|
|
34
|
+
# Monday: Bug fix
|
|
35
|
+
sisyphus version --bump patch --filter @org/auth
|
|
125
36
|
|
|
126
|
-
|
|
37
|
+
# Tuesday: New feature
|
|
38
|
+
sisyphus version --bump minor --filter @org/api
|
|
127
39
|
|
|
128
|
-
|
|
129
|
-
|
|
40
|
+
# Friday: Ship it
|
|
41
|
+
sisyphus check # Review pending changes
|
|
42
|
+
sisyphus roll --npm --github # Release all at once
|
|
130
43
|
```
|
|
131
|
-
</details>
|
|
132
|
-
|
|
133
|
-
## π¦ Installation
|
|
134
44
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
45
|
+
**Benefits:**
|
|
46
|
+
- Stack changes throughout the week
|
|
47
|
+
- Coordinate multi-package updates
|
|
48
|
+
- Review before releasing
|
|
49
|
+
- Git-friendly (stones are markdown files)
|
|
139
50
|
|
|
140
|
-
|
|
141
|
-
bunx @r5n/sisyphus --help
|
|
142
|
-
```
|
|
51
|
+
## Commands
|
|
143
52
|
|
|
144
|
-
|
|
53
|
+
### `sisyphus init`
|
|
145
54
|
|
|
146
|
-
|
|
55
|
+
Initialize config in your project.
|
|
147
56
|
|
|
148
57
|
```bash
|
|
149
|
-
# Interactive
|
|
150
|
-
sisyphus init
|
|
151
|
-
|
|
152
|
-
# Non-interactive with options
|
|
153
|
-
sisyphus init --nonInteractive --tag latest
|
|
58
|
+
sisyphus init # Interactive
|
|
59
|
+
sisyphus init --single # Single package mode
|
|
60
|
+
sisyphus init --nonInteractive # Skip prompts
|
|
154
61
|
```
|
|
155
62
|
|
|
156
|
-
###
|
|
63
|
+
### `sisyphus version`
|
|
64
|
+
|
|
65
|
+
Create a version stone (changeset).
|
|
157
66
|
|
|
158
67
|
```bash
|
|
159
|
-
# Interactive
|
|
68
|
+
# Interactive
|
|
160
69
|
sisyphus version
|
|
161
70
|
|
|
162
|
-
#
|
|
163
|
-
sisyphus version
|
|
71
|
+
# Specify packages and bump
|
|
72
|
+
sisyphus version --bump minor --filter @org/core
|
|
164
73
|
|
|
165
|
-
#
|
|
166
|
-
sisyphus version --
|
|
74
|
+
# Snapshot/prerelease
|
|
75
|
+
sisyphus version --snapshot --tag dev
|
|
167
76
|
```
|
|
168
77
|
|
|
169
|
-
|
|
78
|
+
**Options:**
|
|
79
|
+
- `-b, --bump` β Bump type: major, minor, patch
|
|
80
|
+
- `-f, --filter` β Package name filter
|
|
81
|
+
- `-s, --snapshot` β Create snapshot version
|
|
82
|
+
- `-t, --tag` β Release tag (alpha, beta, rc, etc.)
|
|
83
|
+
- `-y, --yes` β Skip confirmation
|
|
170
84
|
|
|
171
|
-
|
|
172
|
-
# Check pending releases
|
|
173
|
-
sisyphus check
|
|
85
|
+
### `sisyphus check`
|
|
174
86
|
|
|
175
|
-
|
|
176
|
-
sisyphus roll --publish --github
|
|
87
|
+
Review pending stones.
|
|
177
88
|
|
|
178
|
-
|
|
179
|
-
sisyphus
|
|
89
|
+
```bash
|
|
90
|
+
sisyphus check
|
|
91
|
+
sisyphus check --json # JSON output
|
|
180
92
|
```
|
|
181
93
|
|
|
182
|
-
|
|
94
|
+
Shows:
|
|
95
|
+
- Pending stones
|
|
96
|
+
- Package version changes
|
|
97
|
+
- Dependency updates
|
|
98
|
+
- Last release info
|
|
183
99
|
|
|
184
|
-
### `sisyphus
|
|
185
|
-
Initialize Sisyphus in your project.
|
|
100
|
+
### `sisyphus roll`
|
|
186
101
|
|
|
187
|
-
|
|
188
|
-
- `-i, --ignore <packages>` - Packages to ignore (multiple allowed)
|
|
189
|
-
- `-n, --nonInteractive` - Skip interactive prompts
|
|
190
|
-
- `-o, --overwrite` - Overwrite existing configuration
|
|
191
|
-
- `-s, --single` - Single package mode (non-monorepo)
|
|
192
|
-
- `-t, --tag <tag>` - Default release tag (default: "latest")
|
|
102
|
+
Process stones and release.
|
|
193
103
|
|
|
194
|
-
### `sisyphus version`
|
|
195
|
-
Create a new version stone (changeset).
|
|
196
|
-
|
|
197
|
-
**Options:**
|
|
198
|
-
- `-b, --bump <type>` - Bump type (major/minor/patch)
|
|
199
|
-
- `-d, --dryRun` - Preview changes without creating stone
|
|
200
|
-
- `-f, --filter <string>` - Filter packages by name
|
|
201
|
-
- `-s, --snapshot` - Create snapshot versions
|
|
202
|
-
- `-t, --tag <tag>` - Release tag (e.g., "beta", "alpha")
|
|
203
|
-
- `-y, --yes` - Skip confirmation prompt
|
|
204
|
-
|
|
205
|
-
**Examples:**
|
|
206
104
|
```bash
|
|
207
|
-
#
|
|
208
|
-
sisyphus
|
|
209
|
-
|
|
210
|
-
# Create stone with specific bump
|
|
211
|
-
sisyphus version --bump minor --filter @org/core
|
|
105
|
+
# Full release
|
|
106
|
+
sisyphus roll --npm --github --changelog
|
|
212
107
|
|
|
213
|
-
#
|
|
214
|
-
sisyphus
|
|
108
|
+
# Dry run
|
|
109
|
+
sisyphus roll --dry-run
|
|
215
110
|
|
|
216
|
-
#
|
|
217
|
-
sisyphus
|
|
111
|
+
# Just changelogs
|
|
112
|
+
sisyphus roll --changelog
|
|
218
113
|
```
|
|
219
114
|
|
|
220
|
-
### `sisyphus roll`
|
|
221
|
-
Process stones and release packages.
|
|
222
|
-
|
|
223
|
-
**Options:**
|
|
224
|
-
- `-c, --changelog` - Generate changelog
|
|
225
|
-
- `-d, --dryRun` - Preview release without publishing
|
|
226
|
-
- `-g, --github` - Create GitHub releases
|
|
227
|
-
- `-n, --npm` - Publish to npm
|
|
228
|
-
- `-r, --changelogRoot` - Generate root changelog
|
|
229
|
-
- `-t, --withTags` - Create git tags
|
|
230
|
-
- `--githubToken <token>` - GitHub authentication token
|
|
231
|
-
- `--npmToken <token>` - NPM authentication token
|
|
232
|
-
- `--rootTag <tag>` - Root package tag
|
|
233
|
-
|
|
234
|
-
### `sisyphus check`
|
|
235
|
-
Check current stones and package states.
|
|
236
|
-
|
|
237
|
-
**Options:**
|
|
238
|
-
- `--debug` - Show debug information
|
|
239
|
-
- `--json` - Output in JSON format
|
|
240
|
-
|
|
241
|
-
**Output includes:**
|
|
242
|
-
- Pending stones with version changes
|
|
243
|
-
- Affected packages
|
|
244
|
-
- Dependency updates
|
|
245
|
-
- Last release information
|
|
246
|
-
|
|
247
|
-
### `sisyphus preview`
|
|
248
|
-
Preview what versions will be after rolling stones.
|
|
249
|
-
|
|
250
115
|
**Options:**
|
|
251
|
-
- `-
|
|
252
|
-
- `-
|
|
116
|
+
- `-n, --npm` β Publish to npm
|
|
117
|
+
- `-g, --github` β Create GitHub releases
|
|
118
|
+
- `-c, --changelog` β Generate changelogs
|
|
119
|
+
- `-t, --withTags` β Create git tags
|
|
120
|
+
- `-d, --dryRun` β Preview without changes
|
|
121
|
+
- `--npmToken` β NPM authentication token
|
|
122
|
+
- `--githubToken` β GitHub authentication token
|
|
253
123
|
|
|
254
124
|
### `sisyphus prerelease`
|
|
255
|
-
Manage prerelease versions (alpha, beta, rc).
|
|
256
125
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
- `-b, --bump <type>` - Bump type (major/minor/patch)
|
|
260
|
-
- `-p, --promote` - Promote existing prereleases (interactive UI)
|
|
261
|
-
- `-f, --filter <string>` - Filter packages
|
|
262
|
-
- `-d, --dryRun` - Preview changes
|
|
263
|
-
- `-y, --yes` - Skip confirmation
|
|
264
|
-
|
|
265
|
-
**Promotion Flow:**
|
|
266
|
-
- **Alpha** β Beta, RC, or Stable
|
|
267
|
-
- **Beta** β RC or Stable
|
|
268
|
-
- **RC/Next** β Stable only
|
|
269
|
-
|
|
270
|
-
**Examples:**
|
|
126
|
+
Manage prerelease versions.
|
|
127
|
+
|
|
271
128
|
```bash
|
|
272
129
|
# Create beta prerelease
|
|
273
130
|
sisyphus prerelease --type beta --bump minor
|
|
274
131
|
|
|
275
|
-
# Promote prereleases
|
|
132
|
+
# Promote prereleases interactively
|
|
276
133
|
sisyphus prerelease --promote
|
|
277
|
-
|
|
278
|
-
# Non-interactive prerelease
|
|
279
|
-
sisyphus prerelease --type alpha --bump patch --filter @org/core --yes
|
|
280
134
|
```
|
|
281
135
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
- `list` - View all pending stones
|
|
287
|
-
- `show <id>` - Display stone content
|
|
288
|
-
- `delete <id>` - Remove a stone
|
|
289
|
-
- `edit <id>` - Modify stone message
|
|
290
|
-
- `merge` - Combine multiple stones
|
|
291
|
-
|
|
292
|
-
### `sisyphus graph`
|
|
293
|
-
Visualize monorepo package dependencies.
|
|
136
|
+
**Promotion flow:**
|
|
137
|
+
- Alpha β Beta, RC, or Stable
|
|
138
|
+
- Beta β RC or Stable
|
|
139
|
+
- RC β Stable
|
|
294
140
|
|
|
295
|
-
|
|
296
|
-
- `-j, --json` - Output in JSON format
|
|
297
|
-
- `-f, --filter <string>` - Filter to specific package
|
|
298
|
-
- `-d, --depth <number>` - Limit depth of dependency tree
|
|
299
|
-
- `-v, --show-versions` - Display package versions
|
|
300
|
-
|
|
301
|
-
**Examples:**
|
|
302
|
-
```bash
|
|
303
|
-
# Show full dependency graph
|
|
304
|
-
sisyphus graph
|
|
305
|
-
|
|
306
|
-
# Focus on specific package
|
|
307
|
-
sisyphus graph --filter @org/core
|
|
308
|
-
|
|
309
|
-
# Export as JSON
|
|
310
|
-
sisyphus graph --json > dependencies.json
|
|
311
|
-
```
|
|
141
|
+
### `sisyphus stone`
|
|
312
142
|
|
|
313
|
-
|
|
314
|
-
Show help information for commands.
|
|
143
|
+
Manage individual stones.
|
|
315
144
|
|
|
316
145
|
```bash
|
|
317
|
-
sisyphus
|
|
318
|
-
sisyphus
|
|
319
|
-
sisyphus
|
|
146
|
+
sisyphus stone list # List all stones
|
|
147
|
+
sisyphus stone show <id> # Show stone details
|
|
148
|
+
sisyphus stone delete <id> # Remove a stone
|
|
149
|
+
sisyphus stone edit <id> # Edit stone message
|
|
150
|
+
sisyphus stone merge # Combine multiple stones
|
|
320
151
|
```
|
|
321
152
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
### Why Stones? π€
|
|
153
|
+
### `sisyphus graph`
|
|
325
154
|
|
|
326
|
-
|
|
155
|
+
Visualize package dependencies.
|
|
327
156
|
|
|
157
|
+
```bash
|
|
158
|
+
sisyphus graph # Show full graph
|
|
159
|
+
sisyphus graph --filter @org/core # Focus on package
|
|
160
|
+
sisyphus graph --json # Export as JSON
|
|
328
161
|
```
|
|
329
|
-
Monday: "Fixed auth bug" β πͺ¨ Create stone
|
|
330
|
-
Tuesday: "Added user profiles" β πͺ¨ Create stone
|
|
331
|
-
Wednesday: "Optimized database" β πͺ¨ Create stone
|
|
332
|
-
Thursday: "Ready to ship!" β π― Roll all stones!
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
**Benefits:**
|
|
336
|
-
- β
Stack changes throughout the week
|
|
337
|
-
- β
Review everything before release
|
|
338
|
-
- β
Coordinate multi-package updates
|
|
339
|
-
- β
Never lose track of what needs releasing
|
|
340
|
-
- β
Git-friendly (stones are just markdown files)
|
|
341
162
|
|
|
342
|
-
|
|
163
|
+
## Configuration
|
|
343
164
|
|
|
344
165
|
Sisyphus uses `.sisyphus/config.json`:
|
|
345
166
|
|
|
@@ -347,12 +168,10 @@ Sisyphus uses `.sisyphus/config.json`:
|
|
|
347
168
|
{
|
|
348
169
|
"$schema": "https://raw.githubusercontent.com/r5n-labs/clis/main/packages/sisyphus/schema.json",
|
|
349
170
|
"tag": "latest",
|
|
350
|
-
"ignore": ["
|
|
171
|
+
"ignore": ["*-internal"],
|
|
351
172
|
"single": false,
|
|
352
173
|
"commit": {
|
|
353
|
-
"message": "chore(release): ${message}"
|
|
354
|
-
"author": "Sisyphus Bot",
|
|
355
|
-
"email": "bot@example.com"
|
|
174
|
+
"message": "chore(release): ${message}"
|
|
356
175
|
},
|
|
357
176
|
"release": {
|
|
358
177
|
"github": true,
|
|
@@ -360,20 +179,19 @@ Sisyphus uses `.sisyphus/config.json`:
|
|
|
360
179
|
"tags": true
|
|
361
180
|
},
|
|
362
181
|
"changelog": {
|
|
363
|
-
"generate": true
|
|
364
|
-
"includeCommits": true
|
|
182
|
+
"generate": true
|
|
365
183
|
}
|
|
366
184
|
}
|
|
367
185
|
```
|
|
368
186
|
|
|
369
|
-
|
|
187
|
+
## Stone Format
|
|
370
188
|
|
|
371
|
-
Stones are stored in `.sisyphus/stones
|
|
189
|
+
Stones are stored in `.sisyphus/stones/` as markdown:
|
|
372
190
|
|
|
373
191
|
```markdown
|
|
374
|
-
### feat: add authentication
|
|
192
|
+
### feat: add authentication
|
|
375
193
|
|
|
376
|
-
|
|
194
|
+
Added OAuth2 support.
|
|
377
195
|
|
|
378
196
|
---
|
|
379
197
|
|
|
@@ -382,73 +200,55 @@ This adds OAuth2 support and improves security.
|
|
|
382
200
|
| @org/auth | @org/core, @org/api |
|
|
383
201
|
```
|
|
384
202
|
|
|
385
|
-
##
|
|
203
|
+
## Project Structure
|
|
386
204
|
|
|
387
205
|
```
|
|
388
206
|
your-project/
|
|
389
207
|
βββ .sisyphus/
|
|
390
|
-
β βββ config.json
|
|
391
|
-
β βββ stones/
|
|
208
|
+
β βββ config.json
|
|
209
|
+
β βββ stones/
|
|
392
210
|
β βββ feat-auth.md
|
|
393
|
-
β βββ fix-
|
|
211
|
+
β βββ fix-bug.md
|
|
394
212
|
βββ packages/
|
|
395
213
|
β βββ core/
|
|
396
214
|
β β βββ package.json
|
|
397
|
-
β β βββ CHANGELOG.md
|
|
215
|
+
β β βββ CHANGELOG.md
|
|
398
216
|
β βββ auth/
|
|
399
217
|
β βββ package.json
|
|
400
218
|
β βββ CHANGELOG.md
|
|
401
|
-
βββ CHANGELOG.md
|
|
219
|
+
βββ CHANGELOG.md
|
|
402
220
|
```
|
|
403
221
|
|
|
404
|
-
##
|
|
222
|
+
## Examples
|
|
405
223
|
|
|
406
|
-
###
|
|
407
|
-
|
|
408
|
-
- **Runtime**: Bun (optimized for performance)
|
|
409
|
-
- **Validation**: Banditypes (lightweight schemas)
|
|
410
|
-
- **CLI Framework**: Custom with @clack/prompts
|
|
411
|
-
- **Bundle**: Fully self-contained with zero runtime dependencies
|
|
412
|
-
|
|
413
|
-
### How It Works
|
|
414
|
-
|
|
415
|
-
1. **Stone Creation**: Captures version intent without modifying files
|
|
416
|
-
2. **Dependency Resolution**: Analyzes workspace dependencies
|
|
417
|
-
3. **Version Calculation**: Determines final versions from all stones
|
|
418
|
-
4. **Release Pipeline**: Updates files, builds, publishes, and tags
|
|
419
|
-
5. **Cleanup**: Removes processed stones after success
|
|
420
|
-
|
|
421
|
-
## π Examples
|
|
422
|
-
|
|
423
|
-
### Monorepo Release Flow
|
|
224
|
+
### Monorepo Workflow
|
|
424
225
|
|
|
425
226
|
```bash
|
|
426
|
-
#
|
|
227
|
+
# Feature work
|
|
427
228
|
sisyphus version --bump minor --filter @app/core
|
|
428
229
|
|
|
429
|
-
#
|
|
230
|
+
# Bug fix
|
|
430
231
|
sisyphus version --bump patch --filter @app/auth
|
|
431
232
|
|
|
432
|
-
#
|
|
233
|
+
# Breaking change
|
|
433
234
|
sisyphus version --bump major --filter @app/api
|
|
434
235
|
|
|
435
|
-
#
|
|
436
|
-
sisyphus check
|
|
236
|
+
# Release all
|
|
237
|
+
sisyphus check
|
|
437
238
|
sisyphus roll --npm --github --changelog
|
|
438
239
|
```
|
|
439
240
|
|
|
440
|
-
### Prerelease
|
|
241
|
+
### Prerelease Flow
|
|
441
242
|
|
|
442
243
|
```bash
|
|
443
|
-
# Create beta
|
|
444
|
-
sisyphus
|
|
244
|
+
# Create beta
|
|
245
|
+
sisyphus prerelease --type beta --bump minor --filter @org/new-feature
|
|
445
246
|
|
|
446
|
-
#
|
|
247
|
+
# Release beta
|
|
447
248
|
sisyphus roll --npm
|
|
448
249
|
|
|
449
|
-
#
|
|
450
|
-
sisyphus
|
|
451
|
-
sisyphus roll --npm
|
|
250
|
+
# Promote to stable
|
|
251
|
+
sisyphus prerelease --promote
|
|
452
252
|
```
|
|
453
253
|
|
|
454
254
|
### CI/CD Integration
|
|
@@ -466,21 +266,17 @@ jobs:
|
|
|
466
266
|
runs-on: ubuntu-latest
|
|
467
267
|
steps:
|
|
468
268
|
- uses: actions/checkout@v4
|
|
469
|
-
with:
|
|
470
|
-
fetch-depth: 0
|
|
471
|
-
ref: ${{ github.head_ref }}
|
|
472
269
|
- uses: oven-sh/setup-bun@v1
|
|
473
|
-
|
|
474
|
-
-
|
|
475
|
-
|
|
476
|
-
|
|
270
|
+
|
|
271
|
+
- run: bun install
|
|
272
|
+
|
|
477
273
|
- name: Check for stones
|
|
478
274
|
id: check
|
|
479
275
|
run: |
|
|
480
276
|
if [ -d ".sisyphus/stones" ] && [ "$(ls -A .sisyphus/stones)" ]; then
|
|
481
277
|
echo "has_stones=true" >> $GITHUB_OUTPUT
|
|
482
278
|
fi
|
|
483
|
-
|
|
279
|
+
|
|
484
280
|
- name: Release
|
|
485
281
|
if: steps.check.outputs.has_stones == 'true'
|
|
486
282
|
run: bunx @r5n/sisyphus roll --npm --github --changelog
|
|
@@ -489,58 +285,44 @@ jobs:
|
|
|
489
285
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
490
286
|
```
|
|
491
287
|
|
|
492
|
-
##
|
|
288
|
+
## Security
|
|
493
289
|
|
|
494
290
|
### Token Management
|
|
495
291
|
|
|
496
|
-
- **NPM
|
|
497
|
-
- **GitHub
|
|
498
|
-
-
|
|
292
|
+
- **NPM:** Requires `NPM_TOKEN` env var or `--npmToken`
|
|
293
|
+
- **GitHub:** Requires `GITHUB_TOKEN` env var or `--githubToken`
|
|
294
|
+
- Never store tokens in config files
|
|
499
295
|
- Use environment variables in CI/CD
|
|
500
296
|
|
|
501
297
|
### Best Practices
|
|
502
298
|
|
|
503
299
|
1. Review stones before rolling (`sisyphus check`)
|
|
504
|
-
2.
|
|
300
|
+
2. Test with dry-run mode
|
|
505
301
|
3. Commit stones to version control
|
|
506
|
-
4.
|
|
507
|
-
|
|
508
|
-
## π Troubleshooting
|
|
509
|
-
|
|
510
|
-
### Common Issues
|
|
302
|
+
4. Use branch protection for releases
|
|
511
303
|
|
|
512
|
-
|
|
513
|
-
- Create stones with `sisyphus version` first
|
|
514
|
-
- Check `.sisyphus/stones/` directory
|
|
304
|
+
## Troubleshooting
|
|
515
305
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
306
|
+
**No stones found:**
|
|
307
|
+
- Create stones with `sisyphus version` first
|
|
308
|
+
- Check `.sisyphus/stones/` directory exists
|
|
519
309
|
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
- Ensure package.json has required fields
|
|
310
|
+
**Package not found:**
|
|
311
|
+
- Verify package name
|
|
312
|
+
- Check if package is ignored in config
|
|
524
313
|
|
|
525
|
-
|
|
314
|
+
**Publish failed:**
|
|
315
|
+
- Verify NPM token permissions
|
|
316
|
+
- Check if version already exists
|
|
317
|
+
- Ensure package.json has required fields
|
|
526
318
|
|
|
319
|
+
**Debug mode:**
|
|
527
320
|
```bash
|
|
528
|
-
# Verbose logging
|
|
529
321
|
DEBUG=* sisyphus roll --dry-run
|
|
530
|
-
|
|
531
|
-
# Check configuration
|
|
532
322
|
cat .sisyphus/config.json
|
|
533
|
-
|
|
534
|
-
# Inspect stones
|
|
535
323
|
ls -la .sisyphus/stones/
|
|
536
324
|
```
|
|
537
325
|
|
|
538
|
-
##
|
|
539
|
-
|
|
540
|
-
Contributions are welcome! Please see the [main repository](https://github.com/r5n-labs/clis) for contribution guidelines.
|
|
326
|
+
## License
|
|
541
327
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for details.
|
|
545
|
-
|
|
546
|
-
---
|
|
328
|
+
Apache 2.0 β see [LICENSE](./LICENSE)
|