Skip to content

huggingface/semver-release-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

📦🚀 semver-release-action

Github Action to release projects using Semantic Release.

Latest release License

Usage

This github action automates the whole package release workflow including: determining the next version number, generating the release notes, and publishing the package.

name: Release project
on:
  workflow_dispatch:

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v3

      - name: Release
        uses: huggingface/semver-release-action@latest

Inputs parameters

branches

The branches on which releases should happen. By default semantic-release will release: See : https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches

- name: Helm Publish Action
  uses: huggingface/helm-publish-action@latest
  with:
    branches: ["main"]

dryRun

The objective of the dry-run mode is to get a preview of the pending release. Dry-run mode skips the following steps: prepare, publish, addChannel, success and fail. In addition to this it prints the next version and release notes to the console.

- name: Helm Publish Action
  uses: huggingface/helm-publish-action@latest
  with:
    dryRun: true

commitAnalyzerPluginOpts

JSON Options to pass to commit analyzer plugins. See : https://github.com/semantic-release/commit-analyzer#options

- name: Helm Publish Action
  uses: huggingface/helm-publish-action@latest
  with:
    commitAnalyzerPluginOpts: {...}

Outputs

tag

Tag as tag-prefix + version, example: v1.2.3

version

New version or current version if not released, example: 1.2.3

changelog

Changelog of the new version

released

True if new version was released