-
Notifications
You must be signed in to change notification settings - Fork 39
48 lines (39 loc) · 1.01 KB
/
build.yml
File metadata and controls
48 lines (39 loc) · 1.01 KB
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
46
47
48
name: Build Geoview
on:
workflow_call:
inputs:
cache_sha:
type: string
required: true
permissions:
contents: write
env:
NODE_VERSION: "20.17.0"
PNPM_VERSION: "8.15.2"
jobs:
build:
name: build-geoview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
ref: develop
- uses: actions/setup-node@v4
name: Install node
with:
node-version: ${{ env.NODE_VERSION }}
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
# Run rush install and build on our code
- name: Install Rush
run: node common/scripts/install-run-rush.js install
- name: Persist build output for other workflows
uses: actions/cache@v4
with:
path: packages/geoview-core/dist
key: dist-${{ inputs.cache_sha }}
- name: Rush Build
run: node common/scripts/install-run-rush.js build