Skip to content

Commit

Permalink
ci(vscode): add release to ovsx. (#3243)
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes authored Oct 5, 2024
1 parent c1e5366 commit a7b6980
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 47 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-vscode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ jobs:
- name: Publish
run: cd clients/vscode && pnpm run $(node scripts/publish.cjs)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
2 changes: 2 additions & 0 deletions clients/vscode/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ tsup.config.ts
**/.eslintrc.json
**/*.map
**/*.ts
scripts/**
.turbo
12 changes: 9 additions & 3 deletions clients/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,12 @@
"vscode:package": "vsce package --no-dependencies",
"vscode:prepublish": "turbo build --force",
"vscode:publish": "vsce publish --no-dependencies",
"vscode:publish-prerelease": "vsce publish --no-dependencies --pre-release"
"vscode:publish-prerelease": "vsce publish --no-dependencies --pre-release",
"ovsx:publish": "ovsx publish --no-dependencies --pat $OVSX_PAT",
"ovsx:publish-prerelease": "ovsx publish --no-dependencies --pre-release --pat $OVSX_PAT",
"package": "pnpm run vscode:package",
"publish": "pnpm run vscode:publish && pnpm run ovsx:publish",
"publish-prerelease": "pnpm run vscode:publish-prerelease && pnpm run ovsx:publish-prerelease"
},
"devDependencies": {
"@quilted/threads": "^2.2.0",
Expand All @@ -470,20 +475,21 @@
"assert": "^2.0.0",
"dedent": "^0.7.0",
"deep-equal": "^2.2.1",
"diff": "^5.2.0",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-plugin-polyfill-node": "^0.3.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.0.0",
"get-installed-path": "^4.0.8",
"object-hash": "^3.0.0",
"ovsx": "^0.9.5",
"prettier": "^3.0.0",
"semver": "^7.6.0",
"tabby-agent": "workspace:*",
"tabby-chat-panel": "workspace:*",
"tsc-watch": "^6.2.0",
"tsup": "^8.0.2",
"typescript": "^5.3.2",
"vscode-languageclient": "^9.0.1",
"diff": "^5.2.0"
"vscode-languageclient": "^9.0.1"
}
}
4 changes: 2 additions & 2 deletions clients/vscode/scripts/publish.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const minor = semver.minor(packageJson.version);

if (minor % 2 === 0) {
console.warn("Even minor version, release as stable channel");
console.log("vscode:publish");
console.log("publish");
} else {
console.warn("Odd minor version, release as prerelease channel");
console.log("vscode:publish-prerelease");
console.log("publish-prerelease");
}
Loading

0 comments on commit a7b6980

Please sign in to comment.