-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.01 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
name: Release
on:
push:
branches:
- release
- main
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 18.17.1
- run: yarn install --frozen-lockfile
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.TODO_GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
CURRENT_BRANCH: ${{ github.ref_name }}
backmerge-release:
needs: release
if: endsWith(github.ref, '/release')
uses: ./.github/workflows/backmerge_to_lower_branch.yml
name: Backmerge release
with:
BRANCH_TO_UPDATE: dev
secrets:
TODO_GITHUB_TOKEN: ${{ secrets.TODO_GITHUB_TOKEN }}
backmerge-main:
needs: release
if: endsWith(github.ref, '/main')
uses: ./.github/workflows/backmerge_to_release_branch_or_dev.yml
name: Backmerge main
secrets:
TODO_GITHUB_TOKEN: ${{ secrets.TODO_GITHUB_TOKEN }}