semantic-release
as a GitHub Action, with all presets included.
- works with environment variables as documented in
semantic-release
docs - customizable through
semantic-release
configuration options
on:
push:
branches: [ master ]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: semantic-release
uses: ahmadnassri/action-semantic-release@v1
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
default:
true
'true'
when release is successfully published, 'false'
when nothing is published
default:
da39a3ee5e6b4b0d3255bfef95601890afd80709
The sha of the last commit being part of the last release
default:
v1.0.0
The Git tag associated with the last release
default:
next
The distribution channel on which the last release was initially made available (undefined
for the default distribution channel)
default:
1.0.0
The version of the last release
default:
1
last release version major component
default:
0
last release version minor component
default:
0
last release version patch component
default:
-
last release version prerelease component
default:
-
last release version buildmetadata component
default:
N/A
The semver type of the release (patch, minor or major)
default:
68eb2c4d778050b0701136ca129f837d7ed494d2
The sha of the last commit being part of the new release
default:
v1.1.0
The Git tag associated with the new release
default:
1.1.0
The version of the new release.
default:
...
The release notes for the new release
default:
next
The distribution channel on which the next release will be made available (undefined
for the default distribution channel)
default:
1
last release version major component
default:
1
last release version minor component
default:
0
last release version patch component
default:
N/A
last release version prerelease component
default:
N/A
last release version buildmetadata component