rlespinasse / release-that

Opinionated GitHub Action to ease the release of a repository
MIT License
5 stars 0 forks source link
github-actions hacktoberfest release-automation semantic-release semantic-versioning

Release That

An opinionated GitHub Action to ease the release of a repository using semantic versioning

Minimal setup to enable semantic release on any repository

Inputs

dry-run

Whether to make a release in dry-run mode. The outputs act like a release was published.

- uses: rlespinasse/release-that@v1
  with:
    dry-run: true

without-prefix

Remove prefix from released version, like v1.0.0 -> 1.0.0 (doesn't apply to major tag)

- uses: rlespinasse/release-that@v1
  with:
    without-prefix: true

major-tag

Activate the publication a major tag based on released version. Possible values true, false, and auto. If this tag already exists, it will be overwritten.

- uses: rlespinasse/release-that@v1
  with:
    major-tag: true

By default, the value is auto to activate it (like true) on some conditions, otherwise, it's skip (like false).

github-token

Whether to use a Personal Access Token instead of the default GitHub Token for release

- uses: rlespinasse/release-that@v1
  with:
    github-token: ${{ secrets.YOUR_PERSONAL_ACCESS_TOKEN }}

By default ${{ github.token }} is used to make a release. Due to limitation for security concerns, if you want to build a workflows that react when a new release is made, you must use a Personal Access Token.

On repositories created before 2023-02-02, the default token was enough to let this action do its job. Now, new repository will always need to setup permissions to work properly. Please refer to setup documentation.

Outputs

And the following outputs from cycjimmy/semantic-release-action (see Under the wood section).

Under the wood

This is a wrapper around cycjimmy/semantic-release-action action with