From 7e2070a5d8e3dba78b73d676bc902d015b8a41f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20M=C3=BChleisen?= Date: Tue, 10 Oct 2023 11:12:41 +0200 Subject: [PATCH] add some debug for upload --- scripts/node_build_win.sh | 11 ++++++----- scripts/node_version.sh | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/node_build_win.sh b/scripts/node_build_win.sh index 3d7f1c53..9dc6b039 100644 --- a/scripts/node_build_win.sh +++ b/scripts/node_build_win.sh @@ -16,8 +16,9 @@ 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 -# fi \ No newline at end of file +TODO +if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then + echo "UPLOAD" + # 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 c6874019..0848f29e 100755 --- a/scripts/node_version.sh +++ b/scripts/node_version.sh @@ -27,7 +27,7 @@ npm pack --dry-run # upload to npm, maybe if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$1" = "upload" ]] ; then - echo "UPLOAD" + echo "UPLOAD" $VER $DIST # npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN # npm publish --access public $TAG fi