Skip to content

Commit

Permalink
add some debug for upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Oct 10, 2023
1 parent 249288e commit 7e2070a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions scripts/node_build_win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
TODO
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
echo "UPLOAD"
# npx node-pre-gyp publish
# npx node-pre-gyp info
fi
2 changes: 1 addition & 1 deletion scripts/node_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7e2070a

Please sign in to comment.