File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,29 @@ jobs:
3333
3434 # Run install dependencies
3535 - name : Install dependencies
36- run : npm install
36+ run : yarn
3737
3838 # Build extension
3939 - name : Run build
40- run : npm run build
40+ run : yarn build
4141
4242 # Run tests
4343 - name : Run Test
4444 uses : GabrielBB/xvfb-action@v1.0
4545 with :
46- run : npm test
46+ run : yarn test
47+
48+ # Package vsix
49+ - name : Build .vsix package on Linux
50+ if : matrix.os == 'ubuntu-latest'
51+ run : |
52+ VERSION=$(node -p "require('./package.json').version")
53+ npx vsce package -o vscode-yaml-${VERSION}-${GITHUB_RUN_ID}-${GITHUB_RUN_NUMBER}.vsix
54+
55+ # Upload vsix
56+ - name : Upload linux-built vsix
57+ if : matrix.os == 'ubuntu-latest'
58+ uses : actions/upload-artifact@v2
59+ with :
60+ name : vscode-yaml
61+ path : vscode-yaml*.vsix
You can’t perform that action at this time.
0 commit comments