From 7d2f4d8f65e728b5f9fba6e5b55fd4155336b29d Mon Sep 17 00:00:00 2001 From: Ernest Wong Date: Fri, 13 Nov 2026 10:46:32 -0800 Subject: [PATCH 1/4] fix(ci): use the local release packager --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9fa16d2f7..59ca93a6d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -80,10 +80,10 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | - npm install -g @mapbox/node-pre-gyp aws-sdk node lifecycleScripts/clean - node-pre-gyp package - node-pre-gyp publish + rm -f build/Release/obj.target/nodegit.node + ./node_modules/.bin/node-pre-gyp package + ./node_modules/.bin/node-pre-gyp publish macos-tests: name: "macOS Tests" @@ -143,7 +143,7 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | - npm install -g @mapbox/node-pre-gyp aws-sdk node lifecycleScripts/clean - node-pre-gyp package - node-pre-gyp publish + rm -f build/Release/obj.target/nodegit.node + ./node_modules/.bin/node-pre-gyp package + ./node_modules/.bin/node-pre-gyp publish From 78601bc53b7a67c0fd3cd5ec0fd9dfd34ae031e2 Mon Sep 17 00:00:00 2001 From: Ernest Wong Date: Fri, 13 Nov 2026 11:49:12 -0800 Subject: [PATCH 2/4] fix(ci): pin the global release packager --- .github/workflows/tests.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 59ca93a6d..ddaa60cae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -80,10 +80,11 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk node lifecycleScripts/clean rm -f build/Release/obj.target/nodegit.node - ./node_modules/.bin/node-pre-gyp package - ./node_modules/.bin/node-pre-gyp publish + node-pre-gyp package + node-pre-gyp publish macos-tests: name: "macOS Tests" @@ -143,7 +144,8 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk node lifecycleScripts/clean rm -f build/Release/obj.target/nodegit.node - ./node_modules/.bin/node-pre-gyp package - ./node_modules/.bin/node-pre-gyp publish + node-pre-gyp package + node-pre-gyp publish From 40c63ac04f2593588054730e6055c9fca566b470 Mon Sep 17 00:00:00 2001 From: Ernest Wong Date: Fri, 13 Nov 2026 12:15:56 -0800 Subject: [PATCH 3/4] test(ci): package native modules in pull requests --- .github/workflows/tests.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ddaa60cae..c75b17232 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,6 +70,12 @@ jobs: ssh-add ~/.ssh_tests/id_rsa node utils/retry npm test + - name: Package + run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk + node lifecycleScripts/clean + node-pre-gyp package + - name: configure aws credentials if: startsWith(github.ref, 'refs/tags/v') uses: aws-actions/configure-aws-credentials@v1 @@ -80,10 +86,6 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | - npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk - node lifecycleScripts/clean - rm -f build/Release/obj.target/nodegit.node - node-pre-gyp package node-pre-gyp publish macos-tests: @@ -134,6 +136,12 @@ jobs: ssh-add ~/.ssh_tests/id_rsa node utils/retry npm test + - name: Package + run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk + node lifecycleScripts/clean + node-pre-gyp package + - name: configure aws credentials if: startsWith(github.ref, 'refs/tags/v') uses: aws-actions/configure-aws-credentials@v1 @@ -144,8 +152,4 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | - npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk - node lifecycleScripts/clean - rm -f build/Release/obj.target/nodegit.node - node-pre-gyp package node-pre-gyp publish From 2b588be46fc29a043e067cdfe9d3118955b15d1a Mon Sep 17 00:00:00 2001 From: Ernest Wong Date: Fri, 13 Nov 2026 12:47:56 -0800 Subject: [PATCH 4/4] fix(ci): keep only the release packager pin --- .github/workflows/tests.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c75b17232..f8fe43f9f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,12 +70,6 @@ jobs: ssh-add ~/.ssh_tests/id_rsa node utils/retry npm test - - name: Package - run: | - npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk - node lifecycleScripts/clean - node-pre-gyp package - - name: configure aws credentials if: startsWith(github.ref, 'refs/tags/v') uses: aws-actions/configure-aws-credentials@v1 @@ -86,6 +80,9 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk + node lifecycleScripts/clean + node-pre-gyp package node-pre-gyp publish macos-tests: @@ -136,12 +133,6 @@ jobs: ssh-add ~/.ssh_tests/id_rsa node utils/retry npm test - - name: Package - run: | - npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk - node lifecycleScripts/clean - node-pre-gyp package - - name: configure aws credentials if: startsWith(github.ref, 'refs/tags/v') uses: aws-actions/configure-aws-credentials@v1 @@ -152,4 +143,7 @@ jobs: - name: Deploy if: startsWith(github.ref, 'refs/tags/v') run: | + npm install -g @mapbox/node-pre-gyp@1.0.8 aws-sdk + node lifecycleScripts/clean + node-pre-gyp package node-pre-gyp publish