diff --git a/.github/workflows/bump-up.yml b/.github/workflows/bump-up.yml new file mode 100644 index 0000000..0cb32df --- /dev/null +++ b/.github/workflows/bump-up.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8f4dae..b8501ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/src/renderer/pages/onboarding.tsx b/src/renderer/pages/onboarding.tsx index f308754..20de48e 100644 --- a/src/renderer/pages/onboarding.tsx +++ b/src/renderer/pages/onboarding.tsx @@ -26,8 +26,8 @@ const contents = [ imageSrc: onboardingImage1, }, { - title: '다른 앱을 실행하면 방해 알림을 보내요', - description: '뽀모도로를 실행한 후, 다른 앱을 사용하면\n설정한 주기로 방해 알림을 보내드려요.', + title: '집중, 휴식시간이 끝나면 알림을 보내요', + description: '뽀모도로를 실행한 후, 목표 시간이 지나면\n시간이 끝났다는 알림을 보내드려요.', imageSrc: onboardingImage2, }, {