Skip to content

Commit 8c36f26

Browse files
committed
remove package-specific publish controls
1 parent 1f4e198 commit 8c36f26

File tree

1 file changed

+45
-40
lines changed

1 file changed

+45
-40
lines changed

.github/workflows/DuckDBNodeBindingsAndAPI.yml

Lines changed: 45 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
pull_request:
44
workflow_dispatch:
55
inputs:
6+
publish:
7+
description: 'Publish'
8+
type: boolean
9+
required: true
10+
default: false
611
publish_dry_run:
712
description: 'Publish Dry Run'
813
type: boolean
@@ -13,51 +18,51 @@ on:
1318
type: boolean
1419
required: true
1520
default: false
16-
publish_linux_x64:
17-
description: 'Publish Bindings for Linux x64'
18-
type: boolean
19-
required: true
20-
default: false
21-
publish_bindings:
22-
description: 'Publish Bindings (from Linux x64)'
23-
type: boolean
24-
required: true
25-
default: false
26-
publish_api:
27-
description: 'Publish API (from Linux x64)'
28-
type: boolean
29-
required: true
30-
default: false
21+
# publish_linux_x64:
22+
# description: 'Publish Bindings for Linux x64'
23+
# type: boolean
24+
# required: true
25+
# default: false
26+
# publish_bindings:
27+
# description: 'Publish Bindings (from Linux x64)'
28+
# type: boolean
29+
# required: true
30+
# default: false
31+
# publish_api:
32+
# description: 'Publish API (from Linux x64)'
33+
# type: boolean
34+
# required: true
35+
# default: false
3136
linux_arm64:
3237
description: 'Run on Linux arm64'
3338
type: boolean
3439
required: true
3540
default: false
36-
publish_linux_arm64:
37-
description: 'Publish Bindings for Linux arm64'
38-
type: boolean
39-
required: true
40-
default: false
41+
# publish_linux_arm64:
42+
# description: 'Publish Bindings for Linux arm64'
43+
# type: boolean
44+
# required: true
45+
# default: false
4146
macos_arm64:
4247
description: 'Run on Mac OS X arm64'
4348
type: boolean
4449
required: true
4550
default: false
46-
publish_darwin_arm64:
47-
description: 'Publish Bindings for Darwin arm64'
48-
type: boolean
49-
required: true
50-
default: false
51+
# publish_darwin_arm64:
52+
# description: 'Publish Bindings for Darwin arm64'
53+
# type: boolean
54+
# required: true
55+
# default: false
5156
windows_x64:
5257
description: 'Run on Windows x64'
5358
type: boolean
5459
required: true
5560
default: false
56-
publish_win32_x64:
57-
description: 'Publish Bindings for Win32 x64'
58-
type: boolean
59-
required: true
60-
default: false
61+
# publish_win32_x64:
62+
# description: 'Publish Bindings for Win32 x64'
63+
# type: boolean
64+
# required: true
65+
# default: false
6166
repository_dispatch:
6267

6368
concurrency:
@@ -97,25 +102,25 @@ jobs:
97102
run: pnpm test
98103

99104
- name: Git Status
100-
if: ${{ inputs.publish_linux_x64 || inputs.publish_bindings || inputs.publish_api }}
105+
if: ${{ inputs.publish }}
101106
run: git status
102107

103108
- name: Publish - Bindings - Linux x64
104-
if: ${{ inputs.publish_linux_x64 }}
109+
if: ${{ inputs.publish }}
105110
working-directory: bindings/pkgs/@duckdb/node-bindings-linux-x64
106111
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
107112
env:
108113
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }}
109114

110115
- name: Publish - Bindings
111-
if: ${{ inputs.publish_bindings }}
116+
if: ${{ inputs.publish }}
112117
working-directory: bindings/pkgs/@duckdb/node-bindings
113118
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
114119
env:
115120
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }}
116121

117122
- name: Publish - API
118-
if: ${{ inputs.publish_api }}
123+
if: ${{ inputs.publish }}
119124
working-directory: api/pkgs/@duckdb/node-api
120125
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
121126
env:
@@ -147,11 +152,11 @@ jobs:
147152
run: pnpm run build
148153

149154
- name: Git Status
150-
if: ${{ inputs.publish_linux_arm64 }}
155+
if: ${{ inputs.publish }}
151156
run: git status
152157

153158
- name: Publish - Bindings - Linux arm64
154-
if: ${{ inputs.publish_linux_arm64 }}
159+
if: ${{ inputs.publish }}
155160
working-directory: bindings/pkgs/@duckdb/node-bindings-linux-arm64
156161
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
157162
env:
@@ -188,11 +193,11 @@ jobs:
188193
run: pnpm test
189194

190195
- name: Git Status
191-
if: ${{ inputs.publish_darwin_arm64 }}
196+
if: ${{ inputs.publish }}
192197
run: git status
193198

194199
- name: Publish - Bindings - Darwin arm64
195-
if: ${{ inputs.publish_darwin_arm64 }}
200+
if: ${{ inputs.publish }}
196201
working-directory: bindings/pkgs/@duckdb/node-bindings-darwin-arm64
197202
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
198203
env:
@@ -229,11 +234,11 @@ jobs:
229234
run: pnpm test
230235

231236
- name: Git Status
232-
if: ${{ inputs.publish_win32_x64 }}
237+
if: ${{ inputs.publish }}
233238
run: git status
234239

235240
- name: Publish - Bindings - Win32 x64
236-
if: ${{ inputs.publish_win32_x64 }}
241+
if: ${{ inputs.publish }}
237242
working-directory: bindings/pkgs/@duckdb/node-bindings-win32-x64
238243
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public
239244
env:

0 commit comments

Comments
 (0)