diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml deleted file mode 100644 index c47f594..0000000 --- a/.github/workflows/release-patch.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Release (Patch) - -on: - workflow_dispatch: - inputs: - dry_run: - description: 'Dry run (skip tag/publish)' - required: false - default: false - type: boolean - -permissions: - contents: write - actions: write - -jobs: - release-patch: - runs-on: ubuntu-latest - outputs: - new_version: ${{ steps.bump.outputs.new_version }} - pushed: ${{ steps.push.outputs.pushed }} - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/setup-node@v4 - with: - node-version: '24' - - - name: Configure Git - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - - name: Install dependencies - run: npm ci - - - name: Script syntax gate - run: npm run check:scripts - - - name: Run tests - run: npm test - - - name: Bump patch version - id: bump - run: | - OLD_VERSION=$(node -p "require('./package.json').version") - npm version patch --no-git-tag-version - NEW_VERSION=$(node -p "require('./package.json').version") - echo "old_version=$OLD_VERSION" >> "$GITHUB_OUTPUT" - echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT" - echo "Bumping $OLD_VERSION → $NEW_VERSION" - - - name: Commit, tag, and push - id: push - if: ${{ !inputs.dry_run }} - run: | - git add package.json package-lock.json - git commit -m "chore: bump version to ${{ steps.bump.outputs.new_version }}" - git tag "v${{ steps.bump.outputs.new_version }}" - git push origin main - git push origin "v${{ steps.bump.outputs.new_version }}" - echo "pushed=true" >> "$GITHUB_OUTPUT" - - - name: Trigger release workflow - if: ${{ !inputs.dry_run }} - run: | - gh workflow run release.yml \ - --ref main \ - -f version="${{ steps.bump.outputs.new_version }}" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Dry run summary - if: ${{ inputs.dry_run }} - run: | - echo "Dry run: would bump ${{ steps.bump.outputs.old_version }} → ${{ steps.bump.outputs.new_version }}"