From 5195f2c63338a6914b6c1f69e8b53b50c5d91632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Teles?= Date: Sat, 18 May 2024 07:32:23 -0300 Subject: [PATCH] chore: Bump version and create tag for release --- .github/workflows/publish.yml | 17 ++++++----------- package.json | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad88613..64b0b83 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,25 +30,20 @@ jobs: # - name: Run tests # run: npm test - - name: Bump version + - name: Bump version and create tag id: bump_version run: | - # Incrementa a versão usando standard-version - npx standard-version --release-as patch - # Obter nova versão - NEW_VERSION=$(node -p "require('./package.json').version") - echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV - # Adiciona commit e tag - git push --follow-tags origin main + NEW_TAG=$(npx standard-version --dry-run | grep "tagging release" | awk '{print $3}') + echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV - name: Create GitHub release id: create_release uses: actions/create-release@v1 with: - tag_name: "v${{ env.NEW_VERSION }}" - release_name: Release ${{ env.NEW_VERSION }} + tag_name: ${{ env.NEW_TAG }} + release_name: Release ${{ env.NEW_TAG }} body: | - Release notes for ${{ env.NEW_VERSION }} + Release notes for ${{ env.NEW_TAG }} draft: false prerelease: false env: diff --git a/package.json b/package.json index e59b47c..06b49cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "holly-sheets", - "version": "1.0.0", + "version": "1.0.2", "description": "A Node.js library for interacting with Google Sheets", "main": "dist/index.js", "types": "dist/index.d.ts",