Skip to content

Commit

Permalink
bump up 이 다음 스텝에 영향을 주는지 체크
Browse files Browse the repository at this point in the history
  • Loading branch information
young-do committed Aug 23, 2024
1 parent 33fffc8 commit 8ac3a88
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/bump-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- feature/auto-tagging

jobs:
update-version:
Expand Down Expand Up @@ -32,8 +33,22 @@ jobs:
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 }}
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# tags: true
# branch: ${{ github.ref }}

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

- name: Get version
id: get_version
run: |
version=$(npm version)
echo "Current version: $version"
echo "##[set-output name=version;]$version"

0 comments on commit 8ac3a88

Please sign in to comment.