Skip to content

Commit f2b62ad

Browse files
committed
Add GitHub Actions workflow for building and publishing VSIX package
1 parent ae074a7 commit f2b62ad

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and publish vsix package
2+
3+
on:
4+
push:
5+
6+
env:
7+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8+
9+
jobs:
10+
run:
11+
name: Build and Run
12+
strategy:
13+
matrix:
14+
java-version: [17]
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout current branch (full)
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
# install java, sbt and node
22+
- name: Setup Java
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: temurin
26+
java-version: ${{ matrix.java-version }}
27+
cache: sbt
28+
- uses: sbt/setup-sbt@v1
29+
30+
- name: setup node
31+
uses: actions/setup-node@v4
32+
33+
# install dependencies and build package
34+
- name: compile Scala.js
35+
run: sbt fastOptJS
36+
37+
- name: install dependencies
38+
run: cp package.json out/ && npm
39+
40+
- name: package extension
41+
run: cd out/ && npx vsce package

0 commit comments

Comments
 (0)