From d5d01b8059dfdc333c938bdd0d2882f087fc477f Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Mon, 25 May 2026 04:56:20 +0200 Subject: [PATCH 1/2] Refactor hotfix and release workflows to unify version publishing steps, streamline repository checkout, and enhance commit messages for version bumps. --- .github/workflows/hotfix_workflow.yml | 37 +++++--------------------- .github/workflows/release_workflow.yml | 37 +++++--------------------- 2 files changed, 14 insertions(+), 60 deletions(-) diff --git a/.github/workflows/hotfix_workflow.yml b/.github/workflows/hotfix_workflow.yml index 43907a6..0e12693 100644 --- a/.github/workflows/hotfix_workflow.yml +++ b/.github/workflows/hotfix_workflow.yml @@ -28,13 +28,12 @@ permissions: contents: write jobs: - prepare-version-files: - name: Prepare files for hotfix + publish: + name: Publish version runs-on: ubuntu-latest - outputs: - commit_sha: ${{ steps.commit.outputs.commit }} steps: - - uses: actions/checkout@v4 + - name: Checkout Repository + uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} @@ -76,11 +75,10 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Bump version + - name: Bump version in package.json run: node scripts/bump-version.js "${{ github.event.inputs.version }}" - - name: Commit bumped package.json - id: commit + - name: Commit and push version bump uses: EndBug/add-and-commit@v9 with: add: './package.json' @@ -88,16 +86,7 @@ jobs: committer_email: actions@github.com default_author: user_info message: 'gh-action: bumped version to ${{ github.event.inputs.version }} (hotfix)' - - tag: - name: Publish version - runs-on: ubuntu-latest - needs: [ prepare-version-files ] - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - ref: ${{ needs.prepare-version-files.outputs.commit_sha }} + push: true - name: Copilot - Create Tag uses: vypdev/copilot@v2 @@ -121,18 +110,6 @@ jobs: single-action-changelog: '${{ github.event.inputs.changelog }}' token: ${{ secrets.PAT }} - - name: Setup pnpm - uses: pnpm/action-setup@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Prepare multiplatform package dependencies run: pnpm install --force diff --git a/.github/workflows/release_workflow.yml b/.github/workflows/release_workflow.yml index c054cfb..15b3619 100644 --- a/.github/workflows/release_workflow.yml +++ b/.github/workflows/release_workflow.yml @@ -28,13 +28,12 @@ permissions: contents: write jobs: - prepare-version-files: - name: Prepare files for release + publish: + name: Publish version runs-on: ubuntu-latest - outputs: - commit_sha: ${{ steps.commit.outputs.commit }} steps: - - uses: actions/checkout@v4 + - name: Checkout Repository + uses: actions/checkout@v4 with: token: ${{ secrets.PAT }} @@ -76,11 +75,10 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Bump version + - name: Bump version in package.json run: node scripts/bump-version.js "${{ github.event.inputs.version }}" - - name: Commit bumped package.json - id: commit + - name: Commit and push version bump uses: EndBug/add-and-commit@v9 with: add: './package.json' @@ -88,16 +86,7 @@ jobs: committer_email: actions@github.com default_author: user_info message: 'gh-action: bumped version to ${{ github.event.inputs.version }} (release)' - - tag: - name: Publish version - runs-on: ubuntu-latest - needs: [ prepare-version-files ] - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - ref: ${{ needs.prepare-version-files.outputs.commit_sha }} + push: true - name: Copilot - Create Tag uses: vypdev/copilot@v2 @@ -121,18 +110,6 @@ jobs: single-action-changelog: '${{ github.event.inputs.changelog }}' token: ${{ secrets.PAT }} - - name: Setup pnpm - uses: pnpm/action-setup@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Prepare multiplatform package dependencies run: pnpm install --force From a9ded60cd7bba7b1b535e548694db83a3e40f489 Mon Sep 17 00:00:00 2001 From: vypbot Date: Mon, 25 May 2026 02:59:21 +0000 Subject: [PATCH 2/2] gh-action: bumped version to 1.0.4 (release) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 680bfdc..6712935 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "color": "#1a1d3a", "theme": "dark" }, - "version": "1.0.3", + "version": "1.0.4", "publisher": "vypdev", "author": { "name": "Promptimize Team"