Skip to content

Commit

Permalink
Add "Update release" section to GitLab docs
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Apr 2, 2021
1 parent c565b86 commit aabb178
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/github-releases.md
Expand Up @@ -100,7 +100,7 @@ status.
- Use `--no-npm` to skip publishing to npm if there's a `package.json`.

Use the other options to update the release, such as `--github.assets` to add assets. Note that the `draft` and
`prerelease` options are `false` by default, but can be set explicitly using e.g. `--no-github.draft` or
`preRelease` options are `false` by default, but can be set explicitly using e.g. `--no-github.draft` or
`--github.draft`.

Example command to add assets and explicitly toggle the draft status to "published":
Expand Down
16 changes: 16 additions & 0 deletions docs/gitlab-releases.md
Expand Up @@ -59,3 +59,19 @@ download from the project's releases page. Example:

The `origin` can be set to a string such as `"http://example.org:3000"` to use a different origin from what would be
derived from the Git url (e.g. to use `http` over the default `https://${repo.host}`).

## Update the latest release

The latest GitLab release can be updated, e.g. to update the releases notes or add release assets.

- Use `--no-increment` to skip updating the version.
- Use `--no-git` to skip Git actions.
- Use `--no-npm` to skip publishing to npm if there's a `package.json`.

Use the other options to update the release, such as `--gitlab.assets` to add assets.

Example command to add assets to the latest release:

```bash
release-it --no-increment --no-git --gitlab.release --gitlab.assets=*.zip
```

0 comments on commit aabb178

Please sign in to comment.