File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 3535export PATH=$( npm bin) :$PATH
3636./node_modules/.bin/node-pre-gyp package testpackage testbinary --target_arch=" $TARGET_ARCH "
3737if [[ " $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
4140fi
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ if [[ ! "$GITHUB_REF" =~ ^(refs/tags/v.+)$ ]] ; then
1515fi
1616npx node-pre-gyp package testpackage testbinary
1717
18-
19- TODO
2018if [[ " $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
2421fi
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ npm pack --dry-run
2828# upload to npm, maybe
2929if [[ " $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
3433fi
You can’t perform that action at this time.
0 commit comments