Skip to content

Commit adcdac3

Browse files
add build workflow
1 parent ae1b54c commit adcdac3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build extension
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build extension
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
steps:
19+
- name: Setup Node
20+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
21+
with:
22+
node-version: 20
23+
24+
- name: Checkout repository
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
26+
27+
- name: Install dependencies
28+
run: npm run ci
29+
30+
- name: Build TypeScript
31+
run: npm run build
32+
33+
- name: Package extension
34+
run: npm run package
35+
36+
- name: Upload extension as artifact
37+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
38+
with:
39+
name: extension-${{ github.sha }}
40+
path: ./out/vscode-mojo.vsix
41+
retention-days: 14

0 commit comments

Comments
 (0)