-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.26 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
name: Build
on:
push:
jobs:
build:
strategy:
matrix:
node: [ 20 ]
os:
- ubuntu-latest
# - windows-latest
# - macos-latest
name: ${{ matrix.os }} Node ${{ matrix.node}}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Cache npm repository
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-lint-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-npm-
npm-
- run: |
npm ci
# workaround for strange build issue #2
( mkdir -pv node_modules/@theia/application-manager/node_modules/.bin/ && ln -sfv ../../../../.bin/webpack ./node_modules/@theia/application-manager/node_modules/.bin/webpack)
npm run build:browser
#npm run build:electron
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# lint
# test