@cloud-cli/on 1.2.13 → 1.2.15
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 +3 -3
- package/dist/on.js +1849 -2059
- package/dist/preprocessors/github.d.ts.map +1 -1
- package/dist/secrets.d.ts.map +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Designed with a strict **security-first boundary**, native **JavaScript AST eval
|
|
|
23
23
|
|
|
24
24
|
```text
|
|
25
25
|
my-project/
|
|
26
|
-
├──
|
|
26
|
+
├── on/ # Workflow definitions directory
|
|
27
27
|
│ ├── release.yml
|
|
28
28
|
│ └── test.yml
|
|
29
29
|
├── .env # Local secrets (git-ignored)
|
|
@@ -58,7 +58,7 @@ SECRET_GITHUB_WEBHOOK_SECRET="my-webhook-secret"
|
|
|
58
58
|
|
|
59
59
|
`SECRET_GITHUB_WEBHOOK_SECRET` is required to validate incoming webhooks from GitHub
|
|
60
60
|
|
|
61
|
-
### 3. Define a Workflow (
|
|
61
|
+
### 3. Define a Workflow (`on/release.yml`)
|
|
62
62
|
|
|
63
63
|
```yaml
|
|
64
64
|
name: Build and Publish Release
|
|
@@ -121,7 +121,7 @@ npx @cloud-cli/on [command] [options]
|
|
|
121
121
|
| `-h` | `--help` | — | - | Prints CLI help message and exits. |
|
|
122
122
|
| `-c` | `--config` | `./runner.config.mjs` | `RUNNER_CONFIG_FILE` | Path to JavaScript configuration file. |
|
|
123
123
|
| `-d` | `--database` | - | `RUNNER_DATABASE_URL` | SQLite database file path or HTTP URL. |
|
|
124
|
-
| `-w` | `--workflows` |
|
|
124
|
+
| `-w` | `--workflows` | `on/` | `RUNNER_WORKFLOWS` | Directory where workflow YAML files live. |
|
|
125
125
|
| `-p` | `--port` | `11235` | `PORT` | Port for the Ingress HTTP server. |
|
|
126
126
|
| `-k` | `--workers` | `5` | `RUNNER_WORKERS` | Number of worker loop threads to spawn. |
|
|
127
127
|
| | | | `RUNNER_ADMIN_SECRET` | Admin token to refresh secrets via API |
|