Skip to content

Commit 5523e5b

Browse files
authored
Merge pull request #7 from hannes/enableupload
Enable upload
2 parents b5031c3 + c1a2298 commit 5523e5b

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

scripts/node_build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ fi
3535
export PATH=$(npm bin):$PATH
3636
./node_modules/.bin/node-pre-gyp package testpackage testbinary --target_arch="$TARGET_ARCH"
3737
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
38-
echo "UPLOAD"
39-
# TODO ./node_modules/.bin/node-pre-gyp publish --target_arch=$TARGET_ARCH
40-
# TODO ./node_modules/.bin/node-pre-gyp info --target_arch=$TARGET_ARCH
38+
./node_modules/.bin/node-pre-gyp publish --target_arch=$TARGET_ARCH
39+
./node_modules/.bin/node-pre-gyp info --target_arch=$TARGET_ARCH
4140
fi

scripts/node_build_win.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ if [[ ! "$GITHUB_REF" =~ ^(refs/tags/v.+)$ ]] ; then
1515
fi
1616
npx node-pre-gyp package testpackage testbinary
1717

18-
19-
TODO
2018
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ ]] ; then
21-
echo "UPLOAD"
22-
# npx node-pre-gyp publish
23-
# npx node-pre-gyp info
19+
npx node-pre-gyp publish
20+
npx node-pre-gyp info
2421
fi

scripts/node_version.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ npm pack --dry-run
2828
# upload to npm, maybe
2929
if [[ "$GITHUB_REF" =~ ^(refs/heads/main|refs/tags/v.+)$ && "$1" = "upload" ]] ; then
3030
npm version
31-
echo $TAG
32-
# npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
33-
# npm publish --access public $TAG
31+
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
32+
npm publish --access public $TAG
3433
fi

0 commit comments

Comments
 (0)