Skip to content

Commit dee22e8

Browse files
committed
Remove old Cursor Whisper package and update package.json with new icon and gallery banner for Promptimize
1 parent 4d08c32 commit dee22e8

10 files changed

Lines changed: 149 additions & 19 deletions

File tree

.github/workflows/hotfix_workflow.yml

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@ concurrency:
2424
group: ${{ github.workflow }}-${{ github.ref }}
2525
cancel-in-progress: true
2626

27+
permissions:
28+
contents: write
29+
2730
jobs:
2831
prepare-version-files:
2932
name: Prepare files for hotfix
3033
runs-on: ubuntu-latest
34+
outputs:
35+
commit_sha: ${{ steps.commit.outputs.commit }}
3136
steps:
3237
- uses: actions/checkout@v4
38+
with:
39+
token: ${{ secrets.PAT }}
3340

3441
- name: Validate inputs
3542
env:
@@ -57,14 +64,37 @@ jobs:
5764
fi
5865
[[ $err -eq 0 ]] || exit 1
5966
60-
# Example: generic step to perform the version update or compilation (uncomment and adjust as needed)
61-
# - name: Generic step
62-
# uses: whatever/action@v2
67+
- name: Setup pnpm
68+
uses: pnpm/action-setup@v4
69+
with:
70+
version: 9.15.4
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: 22
76+
cache: pnpm
77+
78+
- name: Install dependencies
79+
run: pnpm install --frozen-lockfile
80+
81+
- name: Bump version
82+
run: node scripts/bump-version.js "${{ github.event.inputs.version }}"
83+
84+
- name: Compile extension
85+
run: pnpm run compile
86+
87+
- name: Prepare multiplatform package dependencies
88+
run: pnpm install --force
89+
90+
- name: Package extension
91+
run: pnpm exec vsce package
6392

6493
- name: Commit updated package.json and dist directory
94+
id: commit
6595
uses: EndBug/add-and-commit@v9
6696
with:
67-
add: './build/ ./package.json'
97+
add: './out/ ./promptimize-*.vsix ./package.json'
6898
committer_name: GitHub Actions
6999
committer_email: actions@github.com
70100
default_author: user_info
@@ -77,7 +107,9 @@ jobs:
77107
steps:
78108
- name: Checkout Repository
79109
uses: actions/checkout@v4
80-
110+
with:
111+
ref: ${{ needs.prepare-version-files.outputs.commit_sha }}
112+
81113
- name: Copilot - Create Tag
82114
uses: vypdev/copilot@v2
83115
if: ${{ success() }}
@@ -87,7 +119,7 @@ jobs:
87119
single-action-issue: '${{ github.event.inputs.issue }}'
88120
single-action-version: '${{ github.event.inputs.version }}'
89121
token: ${{ secrets.PAT }}
90-
122+
91123
- name: Copilot - Create Release
92124
uses: vypdev/copilot@v2
93125
if: ${{ success() }}
@@ -100,9 +132,32 @@ jobs:
100132
single-action-changelog: '${{ github.event.inputs.changelog }}'
101133
token: ${{ secrets.PAT }}
102134

103-
# Example: generic step to perform the deployment (uncomment and adjust as needed)
104-
# - name: Generic step
105-
# uses: whatever/action@v2
135+
- name: Setup pnpm
136+
uses: pnpm/action-setup@v4
137+
with:
138+
version: 9.15.4
139+
140+
- name: Setup Node.js
141+
uses: actions/setup-node@v4
142+
with:
143+
node-version: 22
144+
cache: pnpm
145+
146+
- name: Install dependencies
147+
run: pnpm install --frozen-lockfile
148+
149+
- name: Prepare multiplatform package dependencies
150+
run: pnpm install --force
151+
152+
- name: Package extension
153+
run: pnpm exec vsce package
154+
155+
- name: Publish to VS Code Marketplace
156+
run: pnpm exec vsce publish -p "${{ secrets.VSCE_PAT }}"
157+
158+
- name: Publish to Open VSX Registry
159+
if: ${{ success() }}
160+
run: pnpm dlx ovsx publish -p "${{ secrets.OVSX_PAT }}"
106161

107162
- name: Copilot - Deploy success notification
108163
uses: vypdev/copilot@v2

.github/workflows/release_workflow.yml

Lines changed: 64 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@ concurrency:
2424
group: ${{ github.workflow }}-${{ github.ref }}
2525
cancel-in-progress: true
2626

27+
permissions:
28+
contents: write
29+
2730
jobs:
2831
prepare-version-files:
2932
name: Prepare files for release
3033
runs-on: ubuntu-latest
34+
outputs:
35+
commit_sha: ${{ steps.commit.outputs.commit }}
3136
steps:
3237
- uses: actions/checkout@v4
38+
with:
39+
token: ${{ secrets.PAT }}
3340

3441
- name: Validate inputs
3542
env:
@@ -57,14 +64,37 @@ jobs:
5764
fi
5865
[[ $err -eq 0 ]] || exit 1
5966
60-
# Example: generic step to perform the version update or compilation (uncomment and adjust as needed)
61-
# - name: Generic step
62-
# uses: whatever/action@v2
67+
- name: Setup pnpm
68+
uses: pnpm/action-setup@v4
69+
with:
70+
version: 9.15.4
71+
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: 22
76+
cache: pnpm
77+
78+
- name: Install dependencies
79+
run: pnpm install --frozen-lockfile
80+
81+
- name: Bump version
82+
run: node scripts/bump-version.js "${{ github.event.inputs.version }}"
83+
84+
- name: Compile extension
85+
run: pnpm run compile
86+
87+
- name: Prepare multiplatform package dependencies
88+
run: pnpm install --force
89+
90+
- name: Package extension
91+
run: pnpm exec vsce package
6392

6493
- name: Commit updated package.json and dist directory
94+
id: commit
6595
uses: EndBug/add-and-commit@v9
6696
with:
67-
add: './build/ ./package.json'
97+
add: './out/ ./promptimize-*.vsix ./package.json'
6898
committer_name: GitHub Actions
6999
committer_email: actions@github.com
70100
default_author: user_info
@@ -77,7 +107,9 @@ jobs:
77107
steps:
78108
- name: Checkout Repository
79109
uses: actions/checkout@v4
80-
110+
with:
111+
ref: ${{ needs.prepare-version-files.outputs.commit_sha }}
112+
81113
- name: Copilot - Create Tag
82114
uses: vypdev/copilot@v2
83115
if: ${{ success() }}
@@ -87,7 +119,7 @@ jobs:
87119
single-action-issue: '${{ github.event.inputs.issue }}'
88120
single-action-version: '${{ github.event.inputs.version }}'
89121
token: ${{ secrets.PAT }}
90-
122+
91123
- name: Copilot - Create Release
92124
uses: vypdev/copilot@v2
93125
if: ${{ success() }}
@@ -100,9 +132,32 @@ jobs:
100132
single-action-changelog: '${{ github.event.inputs.changelog }}'
101133
token: ${{ secrets.PAT }}
102134

103-
# Example: generic step to perform the deployment (uncomment and adjust as needed)
104-
# - name: Generic step
105-
# uses: whatever/action@v2
135+
- name: Setup pnpm
136+
uses: pnpm/action-setup@v4
137+
with:
138+
version: 9.15.4
139+
140+
- name: Setup Node.js
141+
uses: actions/setup-node@v4
142+
with:
143+
node-version: 22
144+
cache: pnpm
145+
146+
- name: Install dependencies
147+
run: pnpm install --frozen-lockfile
148+
149+
- name: Prepare multiplatform package dependencies
150+
run: pnpm install --force
151+
152+
- name: Package extension
153+
run: pnpm exec vsce package
154+
155+
- name: Publish to VS Code Marketplace
156+
run: pnpm exec vsce publish -p "${{ secrets.VSCE_PAT }}"
157+
158+
- name: Publish to Open VSX Registry
159+
if: ${{ success() }}
160+
run: pnpm dlx ovsx publish -p "${{ secrets.OVSX_PAT }}"
106161

107162
- name: Copilot - Deploy success notification
108163
uses: vypdev/copilot@v2

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build output
22
out/
33
dist/
4-
# *.vsix
4+
*.vsix
55

66
.env
77

.vscodeignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ coverage/**
2020
**/*.test.ts
2121
docs/**
2222
.github/**
23+
promptimize-*.vsix

cursor-whisper-0.1.0.vsix

-31.5 MB
Binary file not shown.

images/icon.png

70.4 KB
Loading

images/logo.png

1.35 MB
Loading

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"name": "promptimize",
33
"displayName": "Promptimize",
44
"description": "Transform voice into optimized prompts using OpenAI Whisper and AI providers",
5+
"icon": "images/icon.png",
6+
"galleryBanner": {
7+
"color": "#1a1d3a",
8+
"theme": "dark"
9+
},
510
"version": "0.1.0",
611
"publisher": "promptimize",
712
"author": {

promptimize-0.1.0.vsix

1.4 MB
Binary file not shown.

scripts/bump-version.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const fs = require('fs');
2+
const path = require('path');
3+
4+
const version = process.argv[2];
5+
if (!version || !/^\d+\.\d+\.\d+$/.test(version)) {
6+
console.error('Invalid version format. Expected: X.Y.Z');
7+
process.exit(1);
8+
}
9+
10+
const packagePath = path.join(__dirname, '..', 'package.json');
11+
const pkg = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
12+
pkg.version = version;
13+
fs.writeFileSync(packagePath, JSON.stringify(pkg, null, 2) + '\n');
14+
console.log(`Version bumped to ${version}`);

0 commit comments

Comments
 (0)