From aa89fb49c12c3f7b9b43880d2d8e648e04807709 Mon Sep 17 00:00:00 2001 From: Jonah Henriksson <33059163+JonahPlusPlus@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:01:13 -0500 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3430be8..a8e31f7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,15 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup + - name: Set version to release tag 📝 + run: pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version - name: Publish to NPM run: pnpm publish --access public --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Push version changes to main branch + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore: release ${{ github.event.release.tag_name }}" + branch: ${{ github.event.repository.default_branch }} + file_pattern: package.json