File tree 1 file changed +36
-1
lines changed
1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 32
32
run : npm run compile
33
33
34
34
publish :
35
- name : Package & Upload VSIX (Publish in Fork, Real in Main)
35
+ name : Package & Upload VSIX (Fake Publish in Fork, Real in Main)
36
36
runs-on : ubuntu-latest
37
37
needs : test
38
38
if : github.event_name == 'release'
73
73
echo "Publishing to VS Code Marketplace..."
74
74
vsce publish --pat ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
75
75
fi
76
+
77
+ pre-publish :
78
+ name : Upload VSIX
79
+ runs-on : ubuntu-latest
80
+ needs : test
81
+
82
+ steps :
83
+ - name : Checkout Repository
84
+ uses : actions/checkout@v4
85
+
86
+ - name : Install Node.js
87
+ uses : actions/setup-node@v4
88
+ with :
89
+ node-version : " 21"
90
+
91
+ - name : Install vsce (VS Code Extension Manager)
92
+ run : npm install -g @vscode/vsce
93
+
94
+ - name : Install Dependencies
95
+ run : npm install
96
+
97
+ - name : Build Extension
98
+ run : npm run compile
99
+
100
+ - name : Ensure dist directory exists
101
+ run : mkdir -p dist
102
+
103
+ - name : Package the VSIX file
104
+ run : vsce package -o dist/extension.vsix
105
+
106
+ - name : Upload VSIX Artifact
107
+ uses : actions/upload-artifact@v4
108
+ with :
109
+ name : vscode-extension
110
+ path : dist/*.vsix
You can’t perform that action at this time.
0 commit comments