Skip to content

Commit 19f6c24

Browse files
committed
ci(workflows): add VSCode marketplace publish workflow and update release config
- Add new GitHub workflow for automated VSCode extension publishing - Configure workflow to trigger on merged PRs with release title pattern - Set up Node.js environment and vsce publishing tool - Update release-please PR title pattern format - Add conditional checks for merged status and PR title format - Configure secure PAT handling for marketplace publishing
1 parent ad0aed1 commit 19f6c24

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Extension to VSCode Marketplace
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish:
11+
if: |
12+
github.event.pull_request.merged == true &&
13+
startsWith(github.event.pull_request.title, 'build') &&
14+
contains(github.event.pull_request.title, '🔖 Release')
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: "npm"
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Install vsce
29+
run: npm install -g @vscode/vsce
30+
31+
- name: Publish Extension
32+
run: vsce publish -p ${VSCE_PAT}
33+
env:
34+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
33
"packages": {
44
".": {
5-
"pull-request-title-pattern": "build(${scope}): 🔖 Release ${component} ${version}",
5+
"pull-request-title-pattern": "build${scope}: 🔖 Release ${component} ${version}",
66
"pull-request-header": ":robot: PR by release-please bot",
77
"include-v-in-tag": true,
88
"initial-version": "0.1.0",

0 commit comments

Comments
 (0)