This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (56 loc) ยท 1.73 KB
/
semantic-versioning.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
53
54
55
56
57
58
59
60
61
62
63
64
name: semantic-versioning
on:
pull_request:
types: [closed]
jobs:
semantic-versioning:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.base_ref == 'main'
steps:
- name: semantic-versioning
uses: release-drafter/release-drafter@v5
with:
config-name: draft-release.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package-version-update:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.base_ref == 'main'
steps:
- uses: actions/checkout@v3
- name: Github ํ์ ์ ๋ณด ์ค์
env:
MY_EMAIL: [email protected]
MY_NAME: Dong-gle
run: |
git config --global user.email $MY_EMAIL
git config --global user.name $MY_NAME
- name: Node.js ์ค์น
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: PR Label ํ์ธ
id: pr-labels
uses: joerick/[email protected]
- name: ๋ฉ์ด์ ๋ฒ์ ์
๋ฐ์ดํธ
if: |
contains(steps.pr-labels.outputs.labels, ' major ')
run: |
yarn version --major
working-directory: ./frontend
- name: ๋ง์ด๋ ๋ฒ์ ์
๋ฐ์ดํธ
if: |
contains(steps.pr-labels.outputs.labels, ' minor ')
run: |
yarn version --minor
working-directory: ./frontend
- name: ํจ์น ๋ฒ์ ์
๋ฐ์ดํธ
if: |
contains(steps.pr-labels.outputs.labels, ' patch ')
run: |
yarn version --patch
working-directory: ./frontend
- name: main ๋ธ๋์น Push
uses: ad-m/github-push-action@master
with:
branch: 'main'