Skip to content

Commit

Permalink
feat: main 브랜치 머지할때 자동 tagging (#51) #minor
Browse files Browse the repository at this point in the history
* pc 온보딩 문구 임의로 변경

* main 브랜치에 머지되면 자동 tag 생성되도록

* 직접 태그 선택해서 배포할 수도 있도록 변경
  • Loading branch information
young-do authored Aug 23, 2024
1 parent f046c47 commit 92890b2
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/bump-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bump version
on:
push:
branches:
- main

jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Determine version type
id: get_version_type
run: |
last_commit_message=$(git log -1 --pretty=%B)
echo "Last commit message: $last_commit_message"
if [[ "$last_commit_message" == *"#major"* ]]; then
echo "version_type=major" >> $GITHUB_ENV
elif [[ "$last_commit_message" == *"#minor"* ]]; then
echo "version_type=minor" >> $GITHUB_ENV
else
echo "No specific version bump keyword found. Defaulting to patch."
echo "version_type=patch" >> $GITHUB_ENV
fi
- name: Bump version
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
npm version ${{ env.version_type }}
- name: Push changes
uses: ad-m/github-push-action@master
with:
tags: true
branch: ${{ github.ref }}
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to trigger on'
required: true
type: string

jobs:
publish_on_linux:
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/pages/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const contents = [
imageSrc: onboardingImage1,
},
{
title: '다른 앱을 실행하면 방해 알림을 보내요',
description: '뽀모도로를 실행한 후, 다른 앱을 사용하면\n설정한 주기로 방해 알림을 보내드려요.',
title: '집중, 휴식시간이 끝나면 알림을 보내요',
description: '뽀모도로를 실행한 후, 목표 시간이 지나면\n시간이 끝났다는 알림을 보내드려요.',
imageSrc: onboardingImage2,
},
{
Expand Down

0 comments on commit 92890b2

Please sign in to comment.