This action is meant to be used across all the suitable repositories inside the organization.
It automatically checks out the repository and setup Node.
The repository should have semantic-release installed and configured (you should be able to run npx semantic-release).
Using this action in another job requires permissions and the github token as showed below:
# ...
jobs:
release:
name: ...
runs-on: ...
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: semantic-release
uses: DomoticASW/semantic-release@1.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}If the repository has semantic-release-export-data plugin installed then two outputs are available to be used:
- new-release-published (example: true)
- new-release-version (example: 1.0.9)