Skip to content

Commit 4fef8b9

Browse files
committed
Use yarn on GH action, upload vsix artifact
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
1 parent 4cf1d44 commit 4fef8b9

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/CI.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)