-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (66 loc) · 1.93 KB
/
releases.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Prepeare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- run: yarn
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_PRIVATE_KEY }}
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
with:
commit: "chore: release"
title: "Merge to release"
tags:
name: Create tags
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_PRIVATE_KEY }}
- name: Tag Core API
uses: ButlerLogic/action-autotag@stable
continue-on-error: true
with:
root: apis/core
tag_prefix: cube-creator-api/v
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Tag UI
uses: ButlerLogic/action-autotag@stable
continue-on-error: true
with:
root: ui
tag_prefix: cube-creator-app/v
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Tag CLI
uses: ButlerLogic/action-autotag@stable
continue-on-error: true
with:
root: cli
tag_prefix: cube-creator-cli/v
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}