https://github.com/sebbo2002/semantic-release-jsr
Small semantic-release plugin, which adjusts the version in jsr.json and executes jsr publish
https://github.com/sebbo2002/semantic-release-jsr
Last synced: 2 months ago
JSON representation
Small semantic-release plugin, which adjusts the version in jsr.json and executes jsr publish
- Host: GitHub
- URL: https://github.com/sebbo2002/semantic-release-jsr
- Owner: sebbo2002
- License: mit
- Created: 2024-03-14T18:51:06.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2026-04-09T05:26:05.000Z (4 months ago)
- Last Synced: 2026-04-09T07:29:27.478Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 3.83 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# semantic-release-jsr
[](LICENSE)
Small `semantic-release` plugin, which adjusts the version in the `jsr.json` file and executes
`jsr publish` to publish the module on jsr.io as well.
## 📦 Install
```bash
# Install via npm
$ npm install -D @sebbo2002/semantic-release-jsr
```
## 🔧 Usage
The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):
```json
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@sebbo2002/semantic-release-jsr"
]
}
```
Please do not forget to set the `id-token` permission in your GitHub action so that `jsr publish`
can access the OIDC ID token for authentication. Optionally, some options can be passed to the
plugin, which are documented [here](https://sebbo2002.github.io/semantic-release-jsr/develop/reference/interfaces/PluginConfig.html).
## ⚙️ Steps
| Step | Description |
| ------------------ | -------------------------------------------------------------------------------------------- |
| `verifyConditions` | Runs `jsr publish --dry-run` to test your setup. Also downloads the deno binary if required. |
| `prepare` | Updates the `jsr.json` / `deno.json` files |
| `publish` | Run final `jsr publish` command |
| `fail` / `success` | Remove the temporary folder |
## 🙆🏼♂️ Copyright and license
Copyright (c) Sebastian Pekarek under the [MIT license](LICENSE).