[general] moving ios and android project under ./platform folder
This commit is contained in:
22
platform/node/scripts/publish.sh
Executable file
22
platform/node/scripts/publish.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
PACKAGE_JSON_VERSION=`node -e "console.log(require('./package.json').version)"`
|
||||
|
||||
if [[ "${CIRCLE_TAG}" == "node-v${PACKAGE_JSON_VERSION}" ]] || [[ "${PUBLISH:-}" == true ]]; then
|
||||
# Changes to the version targets here should happen in tandem with updates to the
|
||||
# EXCLUDE_NODE_ABIS property in cmake/node.cmake and the "node" engines property in
|
||||
# package.json.
|
||||
for TARGET in 6.0.0 8.0.0 10.0.0; do
|
||||
if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}"
|
||||
elif [[ "${BUILDTYPE}" == "Debug" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}" --debug
|
||||
else
|
||||
echo "error: must provide either Debug or RelWithDebInfo for BUILDTYPE"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user