Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scripts/node_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 2 additions & 5 deletions scripts/node_build_win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ 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
echo "UPLOAD"
# npx node-pre-gyp publish
# npx node-pre-gyp info
npx node-pre-gyp publish
npx node-pre-gyp info
fi
5 changes: 2 additions & 3 deletions scripts/node_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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