-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.57 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
branches:
- master
- beta
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
node-version-file: .nvmrc
- run: yarn --frozen-lockfile
- run: yarn run build
- run: yarn semantic-release
id: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
outputs:
new-release-published: ${{ steps.semantic-release.outputs.new-release-published }}
new-release-version: ${{ steps.semantic-release.outputs.new-release-version }}
report-merge:
needs: release
if: github.ref == 'refs/heads/master'
runs-on: self-hosted
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v3
- uses: Keeper-Wallet/jira-action@v1
with:
hooks-url: ${{ secrets.HOOKS_URL }}
hook-merge: ${{ secrets.HOOK_MERGE }}
report-release:
needs: [release, report-merge]
if: needs.release.outputs.new-release-published == 'true'
runs-on: self-hosted
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v3
- uses: Keeper-Wallet/jira-action@v1
with:
component: provider-keeper-mobile
hooks-url: ${{ secrets.HOOKS_URL }}
hook-release: ${{ secrets.HOOK_RELEASE }}
release-version: v${{ needs.release.outputs.new-release-version }}