diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index 8ba7fef..8acd6dc 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -43,26 +43,6 @@ jobs: - name: Install Dependencies run: npm install - - name: Extract version from tag - if: startsWith(github.ref, 'refs/tags/') - id: extract_version - run: echo "::set-output name=VERSION::${GITHUB_REF#refs/tags/v}" - - - name: Update package.json version - if: startsWith(github.ref, 'refs/tags/') - run: | - VERSION=$(echo "${{ steps.extract_version.outputs.VERSION }}" | sed 's/^v//') - npm version $VERSION --no-git-tag-version - - - name: Commit version bump if tag - if: startsWith(github.ref, 'refs/tags/') - run: | - git config --global user.name 'hoanghuy' - git config --global user.email 'hoanghuy.dev0210@gmail.com' - git add package.json - git commit -m "Bump version to ${{ steps.extract_version.outputs.VERSION }}" - git push origin HEAD:${GITHUB_REF#refs/heads/} - - name: Publish Package run: npm publish env: