You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`urlTemplate`| URL template for artifact download links in the manifest. Supports `{{version}}`, `{{file}}`, and `{{revision}}` variables. Primarily for apps and CDN-hosted assets—not needed for SDK packages installed from public registries (npm, PyPI, etc.)|
24
+
|`linkPrereleases`| Update for preview releases. Default: `false`|
25
+
|`checksums`| List of checksum configs|
26
+
|`onlyIfPresent`| Only run if matching file exists|
27
+
|`name`| Human-readable name (used when creating new packages)|
28
+
|`packageUrl`| Link to package registry page, e.g., npmjs.com (used when creating new packages)|
29
+
|`mainDocsUrl`| Link to main documentation (used when creating new packages)|
30
+
|`apiDocsUrl`| Link to API documentation (used when creating new packages)|
The `repo_url` field is always derived from your GitHub repository configuration. When specified, the metadata fields (`name`, `packageUrl`, `mainDocsUrl`, `apiDocsUrl`) are applied to every release, allowing you to update package metadata by changing your `.craft.yml` configuration.
76
+
### `repo_url`
77
+
78
+
The `repo_url` field is automatically set on every publish—it is not user-configurable per target. Craft resolves it in two ways:
79
+
80
+
1. **Auto-detection (default):** Craft reads the `origin` git remote URL and extracts the owner and repo. Both HTTPS (`https://github.com/org/repo.git`) and SSH (`git@github.com:org/repo.git`) formats are supported. For most repositories, no configuration is needed.
81
+
82
+
2. **Explicit config (rare):** If auto-detection isn't possible (e.g., the remote is not on `github.com`), you can provide it via a top-level `github` block in `.craft.yml`:
83
+
```yaml
84
+
github:
85
+
owner: getsentry
86
+
repo: sentry-javascript
87
+
```
88
+
89
+
The value is always overwritten on every publish, so it stays in sync with the actual repository.
90
+
91
+
### Other metadata
92
+
93
+
When specified, the metadata fields (`name`, `packageUrl`, `mainDocsUrl`, `apiDocsUrl`) are applied to every release, allowing you to update package metadata by changing your `.craft.yml` configuration.
0 commit comments