From 8763fa68c7522e2c7768c44d107b3cb985675075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BChleisen?= Date: Tue, 10 Oct 2023 11:30:17 +0200 Subject: [PATCH 1/2] enable upload --- scripts/node_build.sh | 5 ++--- scripts/node_build_win.sh | 5 ++--- scripts/node_version.sh | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/node_build.sh b/scripts/node_build.sh index 4f9186c9..8afefd3e 100755 --- a/scripts/node_build.sh +++ b/scripts/node_build.sh @@ -35,7 +35,6 @@ fi export PATH=$(npm bin):$PATH ./node_modules/.bin/node-pre-gyp package testpackage testbinary --target_arch="$TARGET_ARCH" if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then - echo "UPLOAD" - # TODO ./node_modules/.bin/node-pre-gyp publish --target_arch=$TARGET_ARCH - # TODO ./node_modules/.bin/node-pre-gyp info --target_arch=$TARGET_ARCH + ./node_modules/.bin/node-pre-gyp publish --target_arch=$TARGET_ARCH + ./node_modules/.bin/node-pre-gyp info --target_arch=$TARGET_ARCH fi diff --git a/scripts/node_build_win.sh b/scripts/node_build_win.sh index 9dc6b039..c5332438 100644 --- a/scripts/node_build_win.sh +++ b/scripts/node_build_win.sh @@ -18,7 +18,6 @@ npx node-pre-gyp package testpackage testbinary TODO if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then - echo "UPLOAD" - # npx node-pre-gyp publish - # npx node-pre-gyp info + npx node-pre-gyp publish + npx node-pre-gyp info fi \ No newline at end of file diff --git a/scripts/node_version.sh b/scripts/node_version.sh index c87938df..56f455e0 100755 --- a/scripts/node_version.sh +++ b/scripts/node_version.sh @@ -28,7 +28,6 @@ npm pack --dry-run # upload to npm, maybe if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$1" = "upload" ]] ; then npm version - echo $TAG - # npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN - # npm publish --access public $TAG + npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN + npm publish --access public $TAG fi From c1a2298de8771815889e501c12d486722b19357d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BChleisen?= Date: Tue, 10 Oct 2023 14:52:37 +0200 Subject: [PATCH 2/2] removed spurious text --- scripts/node_build_win.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/node_build_win.sh b/scripts/node_build_win.sh index c5332438..adefa8ea 100644 --- a/scripts/node_build_win.sh +++ b/scripts/node_build_win.sh @@ -15,8 +15,6 @@ if [[ ! "$GITHUB_REF" =~ ^(refs/tags/v.+)$ ]] ; then fi npx node-pre-gyp package testpackage testbinary - -TODO if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then npx node-pre-gyp publish npx node-pre-gyp info