-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (44 loc) · 1.06 KB
/
build_nodejs.yaml
File metadata and controls
51 lines (44 loc) · 1.06 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
49
50
51
name: Build - Node.js All Platforms
on:
workflow_call:
inputs:
publish:
type: boolean
required: false
description: 'Publish package to NPM'
workflow_dispatch:
inputs:
publish:
type: boolean
required: false
description: 'Publish package to NPM'
permissions:
id-token: write
contents: read
packages: read
env:
NODE_VERSION: "20.19.4"
jobs:
# Build platform-specific packages
build-linux:
uses: ./.github/workflows/build_nodejs_linux.yaml
with:
publish: ${{ inputs.publish }}
secrets: inherit
build-macos:
uses: ./.github/workflows/build_nodejs_macos.yaml
with:
publish: ${{ inputs.publish }}
secrets: inherit
build-windows:
uses: ./.github/workflows/build_nodejs_windows.yaml
with:
publish: ${{ inputs.publish }}
secrets: inherit
# Build main package
build-main:
needs: [build-linux, build-macos, build-windows]
uses: ./.github/workflows/build_nodejs_main.yaml
with:
publish: ${{ inputs.publish }}
secrets: inherit