-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.15 KB
/
build.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
# SPDX-FileCopyrightText: The PFDL VS Code Extension Contributors
# SPDX-License-Identifier: CC0-1.0
name: Build new extension version
on:
push:
branches:
- main
paths:
- 'client/**'
- 'server/**'
- 'language_configuration/**'
permissions:
contents: read
jobs:
build-extension:
name: Build extension
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: 'recursive'
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '18'
- name: Install npm packages
run: |
npm install
npm install -g @vscode/vsce
- name: Build extension
run: |
npm run compile
npm run browserify
vsce package --out "./pfdl-extension.vsix"
- name: Upload build artifacts
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: PFDL VS Code Extension build
path: ./pfdl-extension.vsix