Reusable Github workflow for linting commits and make releases using semantic-release
This workflow will use sensible defaults for commitlint and semantic-release
If you want to override the
commitlint configuration,
create a file in your repo named commitlint.config.js
and this will
be used instead of the default in this workflow.
If you want to override the
semantic-release configuration,
create a file in your repo named .releaserc.json
and this will
be used instead of the default in this workflow.
Reference for a workflow job:
permissions:
contents: write
pull-requests: write
repository-projects: write
jobs:
commitlint_and_release:
name: Commit lint and release
uses: nrkno/github-workflow-semantic-release/.github/workflows/workflow.yaml@v3
with:
# inputs
secrets:
# secrets
release-enabled
(boolean, defaulttrue
)lint-enabled
(boolean, defaulttrue
)runs-on
(string, default"ubuntu-latest"
)