-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (41 loc) · 973 Bytes
/
vscode-extension.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
push:
branches:
- main
jobs:
test:
name: Run unit tests
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- run: |
npm install
npm install -g vsce
npm run test
publish:
needs: test
name: Publish to VSCode Marketplace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Build the front-end
run: |
cd front-end
npm install
npm i @angular/[email protected] -g
ng build
- name: Build the extension
run: |
npm install
npm install -g vsce
vsce package
- name: Publish to marketplace
run: vsce publish -p ${{ secrets.MARKETPLACE_SECRET }}