Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

docs: README μˆ˜μ • #180

docs: README μˆ˜μ •

docs: README μˆ˜μ • #180

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'