Commit 3dea32c
feat(javascript): add npm publishing workflow and release scripts (#4076)
This PR implements the npm publishing and release scripts for the
Node.js Driver Manager.
- ci/scripts/node_npm_upload.sh — publishes platform + main packages to
an npm registry
- packaging.yml — upload-npm job publishes to npm with --tag next on
schedule or manual dispatch
- dev/release/post-09-npm.sh — release manager script to publish
official releases
- dev/release/02-sign.sh — GPG signing for npm tarballs
- dev/release/utils-prepare.sh — JavaScript version bumping added to
release preparation
- Package renamed to `apache-arrow/adbc-driver-manager` with proper
versioning (0.23.0)
**Test Plan**
Tested packaging and npm publishing against a local proxy registry from
my fork
- [Action Run:
22973831085](https://github.com/kentkwu/arrow-adbc/actions/runs/22973831085/job/66698340917)
```sh
# Start a local Verdaccio registry
docker run -d --name verdaccio-adbc-test -p 4873:4873 verdaccio/verdaccio
sleep 3
# Create a test user and capture the auth token
TOKEN=$(curl -s -X PUT http://localhost:4873/-/user/org.couchdb.user:testuser \
-H "Content-Type: application/json" \
-d '{"name":"testuser","password":"testpass","type":"user"}' \
| jq -r '.token')
# Download CI-built packages from a workflow run
gh run download 22973831085 --repo kentkwu/arrow-adbc --name node-packages --dir /tmp/node-packages
# Publish to local registry
NPM_TOKEN="${TOKEN}" \
NPM_REGISTRY=http://localhost:4873 \
./ci/scripts/node_npm_upload.sh /tmp/node-packages/
# Verify - note: needs at symbol before apache-arrow
npm view apache-arrow/adbc-driver-manager optionalDependencies --registry http://localhost:4873
# Clean up
docker rm -f verdaccio-adbc-test
```
<img width="1234" height="1095" alt="Screenshot 2026-03-11 at 5 02
26 PM"
src="https://github.com/user-attachments/assets/072635ea-285e-468e-9a6c-008c7018b174"
/>
Tested `utils-prepare.sh` increments version
```sh
SOURCE_DIR=./dev/release
source "$SOURCE_DIR/utils-common.sh"
source "$SOURCE_DIR/utils-prepare.sh"
VERSION_JS="0.99.0"
update_versions "release"
```
Verified the following files updated to `0.99.0`:
- `javascript/package.json` — main version and all
`optionalDependencies`
- `javascript/npm/*/package.json` — all 5 platform packages
- `javascript/Cargo.toml`
Closes #4051
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 59ccc45 commit 3dea32c
22 files changed
Lines changed: 206 additions & 626 deletions
File tree
- .github/workflows
- ci/scripts
- dev/release
- docs/source/development
- javascript
- npm
- darwin-arm64
- darwin-x64
- linux-arm64-gnu
- linux-x64-gnu
- win32-x64-msvc
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 114 | + | |
119 | 115 | | |
120 | 116 | | |
121 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
1190 | 1189 | | |
1191 | 1190 | | |
1192 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1193 | 1197 | | |
1194 | 1198 | | |
1195 | 1199 | | |
1196 | 1200 | | |
1197 | | - | |
| 1201 | + | |
1198 | 1202 | | |
1199 | | - | |
| 1203 | + | |
1200 | 1204 | | |
1201 | 1205 | | |
1202 | 1206 | | |
| |||
1226 | 1230 | | |
1227 | 1231 | | |
1228 | 1232 | | |
| 1233 | + | |
1229 | 1234 | | |
1230 | 1235 | | |
1231 | 1236 | | |
| |||
1272 | 1277 | | |
1273 | 1278 | | |
1274 | 1279 | | |
1275 | | - | |
| 1280 | + | |
1276 | 1281 | | |
1277 | 1282 | | |
1278 | 1283 | | |
| |||
1357 | 1362 | | |
1358 | 1363 | | |
1359 | 1364 | | |
| 1365 | + | |
1360 | 1366 | | |
1361 | 1367 | | |
1362 | 1368 | | |
| |||
1380 | 1386 | | |
1381 | 1387 | | |
1382 | 1388 | | |
1383 | | - | |
| 1389 | + | |
| 1390 | + | |
1384 | 1391 | | |
1385 | 1392 | | |
1386 | 1393 | | |
1387 | 1394 | | |
1388 | 1395 | | |
1389 | 1396 | | |
1390 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
1391 | 1400 | | |
1392 | 1401 | | |
| 1402 | + | |
| 1403 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
156 | 170 | | |
157 | 171 | | |
158 | 172 | | |
| |||
0 commit comments