forked from duckdb/duckdb-node-neo
-
Notifications
You must be signed in to change notification settings - Fork 0
how to create package
hanzala-Databrain edited this page Aug 29, 2025
·
1 revision
Welcome to the duckdb-node-neo wiki!
- Fork the duckdb-node-neo
- Clone the fork repo in local
- Update all .npmrc with
@${YOUR_USERNAME}: registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NPM_AUTH_TOKEN}
- Update the workflow file DuckDBNodeBindingsAndAPI
- Replace all the places in code files
duckdb->usernameeg. databrainhq (make sure in scripts folder there are binary links so don't replace that) - Replace all the folder name from
@duckdb->@username - Generate 2 tokens from TOKENs copy and save them for later
- write_package -> permissions - read:public_key, write:packages, repo
- read_package -> permissions - read:public_key, read:packages
- Create 2 secret variable - in the repo
- YOUR_USERNAME=databrainhq
- NPM_AUTH_TOKEN=ghp_xxxxxx_xxxxxxxxxxxxx (here use write_package token which you created in step 7)
- In bash terminal
export NPM_AUTH_TOKEN=read_package token step 7
export YOUR_USERNAME=databrainhq
npm login --scope=@databrainhq --registry=https://npm.pkg.github.com/
username: databrainhq
password: read_package token step 7
- now you can install this package
npm install @databrainhq/node-api@1.3.2-alpha.26.5