From 8ac3a88009088831ee0000b32fb70c544625aa89 Mon Sep 17 00:00:00 2001 From: young-do Date: Fri, 23 Aug 2024 22:01:32 +0900 Subject: [PATCH] =?UTF-8?q?bump=20up=20=EC=9D=B4=20=EB=8B=A4=EC=9D=8C=20?= =?UTF-8?q?=EC=8A=A4=ED=85=9D=EC=97=90=20=EC=98=81=ED=96=A5=EC=9D=84=20?= =?UTF-8?q?=EC=A3=BC=EB=8A=94=EC=A7=80=20=EC=B2=B4=ED=81=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/bump-up.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bump-up.yml b/.github/workflows/bump-up.yml index 0cb32df..03b0bb1 100644 --- a/.github/workflows/bump-up.yml +++ b/.github/workflows/bump-up.yml @@ -3,6 +3,7 @@ on: push: branches: - main + - feature/auto-tagging jobs: update-version: @@ -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"