Skip to content

prantlf/publish-release-action

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish Version and Create Release

GitHub action for making and publishing changes related to versioning an for creating a new release.

Uses tools newchanges and vp. Only platforms Linux, macOS, Windows on architectures ARM64, RISCV64 and X64 are supported.

Usage

Commit and push the changelog using the latest version written to it and create a new release:

- uses: prantlf/publish-release-action@v1

Work only in specific release branches, take care of changelog only and do not look for any platform-specific zip archives:

jobs: build: steps: - uses: actions/checkout@v4 - uses: prantlf/setup-v-action@v2 - run: ... - uses prantlf/publish-release-action@v1 with: no-bump: true no-archives: true

Inputs

The following parameters can be specified using the with object:

branches

Type: String
Default: 'main master'

Branches which this action should run for, which are used to publishing releases. Use whitespace for separating the branch names. If you want to use multiple lines in YAML, introduce them with ">-". If you want to allow all branches, set the value to "*".

enable

Type: Boolean
Default: true

Can be set to false to prevent this action from running. It's helpful in the pipeline, which will not continue releasing, but only building and testing, and that will be decided in the middle of a job execution.

no-node

Type: Boolean
Default: false

Set to true to ignore package.json and not handle the project as a Node.js package.

no-vlang

Type: Boolean
Default: false

Set to true not to ignore v.mod and not handle the project as a V package.

no-golang

Type: Boolean
Default: false

Set to true not to ignore go.mod and not handle the project as a Go package.

no-rust

Type: Boolean
Default: false

Set to true not to ignore Cargo.toml and not handle the project as a Rust package.

no-bump

Type: Boolean
Default: false

Set to true not to bump the version number in source files. Only the changelog will be modified.

no-commit

Type: Boolean
Default: false

Set to true not to commit the changes. If you set no-bump, you'll likely want to set no-commit and no-push too.

no-commit-skip-ci

Type: Boolean
Default: false

Set to true not to add [skip ci] to the commit message of the changes. Doing it will have another pipeline triggered, if commits are watched.

no-tag

Type: Boolean
Default: false

Set to true not to tag the commits. If you set no-commit, you don't have to set no-tag.

no-tag-skip-ci

Type: Boolean
Default: false

Set to true not to add [skip ci] to the commit message of the tag. Doing it will have another pipeline triggered, if tags are watched.

no-push

Type: Boolean
Default: false

Set to true not to push the committed changes. If you set no-bump, you'll likely want to set no-commit and no-push too.

no-archives

Type: Boolean
Default: false

Set to true not to upload platform archives automatically as release assets.

no-npm-auth

Type: Boolean
Default: false

Set to true not to do not require NPM in the process environment token and write it to .npmrc. This is needed if you use trusted publishers (OIDC) instead of NPM tokens.

bump-major-0

Type: Boolean
Default: false

Set to true to bump the major version also if it is 0.

bump-files

Type: String

Extra files in which to bump the version number, in addition to the package description file.

dry-run

Type: Boolean
Default: false

Can be set to true to only print what would be done without actually doing it.

debug

Type: Boolean
Default: false

Can be set to true to enable debug logging of the supporting tools. Debug logging will be enabled also if it's enabled on the runner.

License

Copyright (C) 2023-2025 Ferdinand Prantl

Licensed under the MIT License.

About

GitHub action for making and publishing changes related to versioning an for creating a new release.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors