forked from maplibre/maplibre-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.13 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
45
name: Build
on:
push:
branches: [main]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16 x64
uses: actions/setup-node@v2-beta
with:
node-version: 16
architecture: x64
- run: npm ci
- run: npm run generate-typings
- run: npm run build-prod
- run: npm run build-csp
- run: npm run build-dev
- run: npm run build-css
- run: npm run build-style-spec
- run: npm run test-build
- run: find dist
- run: mkdir build-info
- name: Store build info
run: |
echo "${{ github.event.pull_request.base.sha }}" > build-info/base_sha
echo "${{ github.event.number }}" > build-info/pull_request_number
- uses: actions/upload-artifact@v2
with:
name: dist
path: ./dist
- uses: actions/upload-artifact@v2
with:
name: build-info
path: ./build-info
- uses: actions/upload-artifact@v2
with:
path: ./test/release
name: test-release