-
Notifications
You must be signed in to change notification settings - Fork 9
32 lines (29 loc) · 945 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 20.x
uses: actions/setup-node@v2
with:
node-version: 20.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