-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (40 loc) · 1.07 KB
/
build-main.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
name: pxt-buildmain
on:
push:
branches:
- 'master'
- 'main'
jobs:
build:
name: buildmain
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: yarn install
uses: bahmutov/npm-install@v1
with:
install-command: yarn install
- name: Linting
run: yarn lint
- name: Compiling
run: yarn compile-web
- name: Testing
run: xvfb-run -a yarn test
- name: Production webpack
run: yarn package-web
- name: Build vsix
run: npx -p=vsce vsce package --yarn --out vscode-makecode-arcade.vsix
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: extension
path: vscode-makecode-arcade.vsix
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: vscode-makecode-arcade.vsix