Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 7 additions & 30 deletions .github/workflows/hotfix_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -76,28 +75,18 @@ 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'
committer_name: GitHub Actions
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
Expand All @@ -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

Expand Down
37 changes: 7 additions & 30 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -76,28 +75,18 @@ 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'
committer_name: GitHub Actions
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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"color": "#1a1d3a",
"theme": "dark"
},
"version": "1.0.3",
"version": "1.0.4",
"publisher": "vypdev",
"author": {
"name": "Promptimize Team"
Expand Down
Loading