conventional-changelog-action/.github/workflows/release.yml

31 lines
709 B
YAML

name: 'release'
on:
push:
branches:
- 'releases/*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: yarn --production
- run: git add node_modules -f
- name: Generate changelog
id: changelog
uses: ./
with:
github-token: ${{ secrets.github_token }}
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.changelog }}