Semantic Release #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Semantic Release | |
on: | |
workflow_run: | |
branches: [ "master" ] | |
workflows: [ "End to End Testing (Docker)" ] | |
types: | |
- completed | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Checkout frank-flow repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
path: frank-flow | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: yarn global add semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/exec conventional-changelog-metahub | |
- name: Run semantic release | |
working-directory: frank-flow | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: chmod +x ./prepare-release.sh && semantic-release |