Composit GitHub Action that use semantic-release to automates the whole package release workflow determining the next version number ad generating the release notes.
- Install following npm packages:
npm i -D @semantic-release/commit-analyzer @semantic-release/git @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator conventional-changelog-conventionalcommits
-
Put config file
.releaserc
in main directory and if necessary customize it. -
Create workflow in your repo:
name: Release
on:
push:
branches: [release, staging]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Semantic Release
uses: meblabs/semantic-release-action@v1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkout: true