Skip to content

Commit a5d63fb

Browse files
Merge pull request #1650 from LeighFinegold/docify_plugin_demo
Experimental Live Docify Plugin with VSCode Marketplace Publishing
2 parents 08b9f18 + e6d08fd commit a5d63fb

File tree

95 files changed

+8783
-2038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+8783
-2038
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Build VS Code Extension
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- 'main'
10+
push:
11+
branches:
12+
- 'main'
13+
workflow_dispatch:
14+
inputs:
15+
publish_to_marketplace:
16+
description: 'Publish to VS Code Marketplace'
17+
required: false
18+
default: false
19+
type: boolean
20+
21+
jobs:
22+
build-and-publish:
23+
name: Build, Test, and Publish VS Code Extension
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
29+
30+
- name: Setup Node.js
31+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
32+
with:
33+
node-version: v22
34+
35+
- name: Install workspace
36+
run: npm ci
37+
38+
- name: Lint VS Code Extension
39+
run: npm run lint --workspace=calm-plugins/vscode
40+
41+
- name: Build and Test VS Code Extension
42+
run: npm run test:vscode
43+
44+
- name: Package VS Code Extension
45+
run: npm run package:vscode
46+
47+
- name: Publish to VS Code Marketplace
48+
if: github.event.inputs.publish_to_marketplace == 'true'
49+
working-directory: ./calm-plugins/vscode
50+
run: npx vsce publish --packagePath *.vsix
51+
env:
52+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
53+
54+

.github/workflows/publish-major-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
publish:
1313
runs-on: ubuntu-latest
14-
if: startsWith(github.event.release.tag_name, 'v') && !github.event.release.prerelease
14+
if: (startsWith(github.event.release.tag_name, 'v') && !startsWith(github.event.release.tag_name, 'vscode-')) && !github.event.release.prerelease
1515
steps:
1616
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
1717
with:

calm-plugins/vscode/.vscodeignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Strict bundle-only .vscodeignore
2+
# Ignore everything by default, then allow only essential files for the VSIX
3+
**
4+
5+
# Keep package metadata
6+
!package.json
7+
!README.md
8+
!CHANGELOG.md
9+
!LICENSE
10+
11+
# Keep built extension bundles
12+
!dist/**
13+
14+
# Keep media/icons used by the extension (if present)
15+
!media/**
16+
!icons/**
17+
18+
# Keep this ignore file itself
19+
!.vscodeignore
20+
21+
# Include the templates directory
22+
!templates/**
23+
24+
# Exclude node_modules entirely to avoid pulling workspace symlinks or repo-top files
25+
# (If you need to vendor runtime packages, copy just their runtime output into `dist/` before packaging.)

calm-plugins/vscode/LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Apache License
2+
3+
See root LICENSE

0 commit comments

Comments
 (0)