File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy VSCode Extension
2+
3+ on :
4+ push :
5+ branches :
6+ - master # or the branch you want to trigger deployment from
7+ workflow_dispatch : # Allows manual triggering
8+
9+ jobs :
10+ release :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Step 1: Checkout the repository
14+ - name : Checkout code
15+ uses : actions/checkout@v3
16+
17+ # Step 2: Set up Node.js
18+ - name : Set up Node.js
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : ' 16.x'
22+
23+ # Step 3: Install dependencies
24+ - name : Install dependencies
25+ run : npm install
26+
27+ # Step 4: Lint, build, and test (optional but recommended)
28+ - name : Run build and tests
29+ run : |
30+ npm run compile # if you have a linting step
31+ # npm run build # if you have a build step
32+ # npm test # if you have tests
33+
34+ # Step 5: Package and publish the extension
35+ - name : Publish VSCode Extension
36+ env :
37+ VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
38+ run : |
39+ npx vsce package # This packages the extension
40+ npx vsce publish # This publishes the extension
41+
You can’t perform that action at this time.
0 commit comments