This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
docs: README μμ #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |