From 6ba3c4ed2accc52f0ff7b6b94559036e3f5dbc2d Mon Sep 17 00:00:00 2001 From: gitethanwoo <68758055+gitethanwoo@users.noreply.github.com> Date: Wed, 17 Dec 2025 19:47:30 -0500 Subject: [PATCH] Remove auto-bump from publish workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only publish when version is manually bumped. No more surprise commits. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/publish.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f62a5c4..0599ecd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,6 @@ on: permissions: id-token: write - contents: write jobs: publish: @@ -30,22 +29,12 @@ jobs: PUBLISHED=$(npm view pr-visual version 2>/dev/null || echo "0.0.0") if [ "$CURRENT" != "$PUBLISHED" ]; then echo "publish=true" >> $GITHUB_OUTPUT - echo "bump=false" >> $GITHUB_OUTPUT - echo "Version $CURRENT not published yet" + echo "Version $CURRENT is new, will publish" else - echo "publish=true" >> $GITHUB_OUTPUT - echo "bump=true" >> $GITHUB_OUTPUT - echo "Version $CURRENT already published, will bump" + echo "publish=false" >> $GITHUB_OUTPUT + echo "Version $CURRENT already published, skipping" fi - - name: Bump version - if: steps.check.outputs.bump == 'true' - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - npm version patch -m "Bump version to %s [skip ci]" - git push - - name: Publish to npm if: steps.check.outputs.publish == 'true' run: npm publish --access public