Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.06 KB

RELEASE.md

File metadata and controls

24 lines (16 loc) · 1.06 KB

Upgrading to a new Node.js version

  1. Checkout the napi-libnode-v18.x branch of https://github.com/mmomtchev/node and rebase it on top of the latest tag (ie v18.10.0)

  2. Change the directory to node-18.x/ubuntu and add the new version to the debian/changelog by launching dch

  3. export BRANCH=18

  4. bash make-libnode-dist.sh This will create the -orig tarballs

  5. bash extract-libnode-dir.sh This will create the debian source directory, reapply and refresh the patches (patches will be modified after this step) Don't worry if the napi-embedding patch fails to apply cleanly

  6. bash make-patch.sh ../node-napi-libnode-v18.x (directory with the napi-libnode-v18.x checkout) This will create a new libnode patch with all the eventual modifications from the rebase in step 1 This will update the napi-embedding patch - rerun step 5 if there were errors

  7. BIN_ONLY=1 bash build-libnode.sh This will simply test building the new packages

  8. PUBLISH=1 SRC_ONLY=1 bash build-libnode.sh This will publish the new packages