Skip to content

Commit

Permalink
Merge pull request #7 from hannes/enableupload
Browse files Browse the repository at this point in the history
Enable upload
  • Loading branch information
hannes authored Oct 10, 2023
2 parents b5031c3 + c1a2298 commit 5523e5b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
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

0 comments on commit 5523e5b

Please sign in to comment.