Newer
Older
A `semantic-release` plugin to update the bazel module version specified in `MODULE.bazel`
| Step | Description |
| ---- | ----------- |
| verifyConditions | Verify that `MODULE.bazel` exists, `module.version` is specified in it and is writable. |
| prepare | Updates the version specified by `module.version` following semantic versioning. |
```sh
npm config set always-auth true
npm config set @semantic-release:registry https://gitlab.gpu.arm.com/api/v4/packages/npm/
npm config set -- '//gitlab.gpu.arm.com/api/v4/packages/npm/:_authToken' '${GITLAB_TOKEN}'
export GITLAB_TOKEN="<personal-access-token>"
npm install --save-dev @semantic-release/bzlmod
```yaml
plugins:
- "@semantic-release/bzlmod"
```
By default the plugin will locate `MODULE.bazel` in the current package root `.`
The path to `MODULE.bazel` can be specified in the plugin configuration.
For example, to specify `MODULE.bazel` in `./custom/`, do:
```yaml
plugins:
- path: "@semantic-release/bzlmod"
filepath:
- "./custom/MODULE.bazel"
```