nearform-actions/Auto Publish

Automatically publish to NPM and create Github release

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenYour Github token, it's already available to your Github actionno${{ github.token }}
npm-tokenYour Npm Publish token, if you do not wish to publish to Npm, skip thisno
build-commandThe bash command to execute after the version bump and before opening the PRno
optic-urlURL if you have a custom application that serves OTPnohttps://optic-zf3votdk5a-ew.a.run.app/api/generate/
optic-tokenYour Optic token. You can add your Npm secret to the Optic app, generate a new token and pass it to this input. Required only if you want to pubish to Npm and have MFA enabled for your accountno
actor-nameThe name you want to see in the new release commit.no${{ github.actor }}
actor-emailThe email you want to see in the new release commitnoactions@users.noreply.github.com
semverThe semver to use for this new releaseyespatch
npm-tagIf you want to release to the Npm with a custom tag, pass it herenolatest
api-urlUrl of the API where the application is runningnohttps://optic-release-automation.nearform.com/
app-nameName of the github app that authors optic PRs in the following format: `app-name[bot]`nooptic-release-automation[bot]
sync-semver-tagsIf you want to keep the major and minor versions tag synced to the latest appropriate commitnofalse
commit-messageThe commit message template. The keyword "{version}" will be replaced with the new versionnoRelease {version}
revert-commit-after-failureIf the release fails while publishing to NPM and to GitHub, setting this flag to "true", will revert the release commit. When using this flag, make sure the action is able to push directly to the main branchnofalse
notify-linked-issuesIf the flag is set to "true", a comment will be posted on each issue that is linked to the pull requests included in each release. The default setting is "true".notrue
artifact-pathSet this input to the distribution folder or file you want to add as the main asset for your release. It will be downloadable from the release page and a preview of it will be available in the pull request.no
version-prefixA prefix to apply to the version number, which reflects in the tag and GitHub release namesyesv
prerelease-prefixA prefix to apply to the prerelease version numberno
base-tagThis input allows you to specify a base release and will include all changes made in releases between the base release and the latest releaseno
provenanceIf true, NPM >9.5 will attempt to generate and display a "provenance" badge. See https://docs.npmjs.com/generating-provenance-statementsnofalse
accessIf defined, sets package to public or restricted via `--access` flag on `npm publish`. Supported values are "restricted" or "public".no
publish-modeChoose how to publish to npm: "token" (default), "oidc" (Trusted Publishing), or "none" (skip npm publish)notoken
ngrok-tokenYour Ngrok Auth Token. Required only if you want to pubish to Npm and have MFA enabled for your accountno
bump-commandThe command to use to bump the version of the pacakge. It defaults to npm versionno
get-version-commandThe command to use to get the current version of the package. It defaults to npm get pkg versionno

no outputs