Skip to content

Unsupervisedcom/action-semantic-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action:Semantic Release

Perform a semantic release. Includes an option to toggle include administrators on branch protection, and then run semantic-release with a given release config

- uses: Unsupervisedcom/action-semantic-release@undefined
  with:
    # git token to use for the run
    token: ""

    # If true, this action will disable the `include administrators` setting in branch
    # protection for this branch, and re-enable it after release. Re-enabling is run
    # using always()
    # Default: false
    toggle-admins: ""

    # The release configuration to use for the release. Set this to
    # `@unsupervised/release-config-javascript-actions` for javascript actions
    # Default: @unsupervised/release-config-general
    release-config: ""
Input Description Default Required
token git token to use for the run true
toggle-admins If true, this action will disable the include administrators setting in branch protection for this branch, and re-enable it after release. Re-enabling is run using always() false
release-config The release configuration to use for the release. Set this to @unsupervised/release-config-javascript-actions for javascript actions @unsupervised/release-config-general false
Output Description Default Required
random-number Random number

Example usage

name: Release
on:
  pull_request:
    types:
      - closed
    branches:
      - main
jobs:
  release:
    runs-on: ubuntu-latest
    name: Release
    steps:
      - uses: Unsupervisedcom/action-semantic-release@v1
        with:
          token: ${{ secrets.DEPLOYER_CI_TOKEN }}

About

Performs a semantic release with the given release configuration

Resources

License

Stars

Watchers

Forks

Packages

No packages published