Improved node release workflow with arm support
This commit is contained in:
@@ -9,11 +9,15 @@ if [[ "${CIRCLE_TAG}" == "node-v${PACKAGE_JSON_VERSION}" ]] || [[ "${PUBLISH:-}"
|
||||
# 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
|
||||
for TARGET in 14.0.0 16.0.0 18.0.0; do
|
||||
rm -rf build/stage
|
||||
|
||||
if [[ "${BUILDTYPE}" == "RelWithDebInfo" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}"
|
||||
./node_modules/.bin/node-pre-gyp package --target="${TARGET}" $@
|
||||
./node_modules/.bin/node-pre-gyp-github publish --release
|
||||
elif [[ "${BUILDTYPE}" == "Debug" ]]; then
|
||||
./node_modules/.bin/node-pre-gyp package publish info --target="${TARGET}" --debug
|
||||
./node_modules/.bin/node-pre-gyp package --target="${TARGET}" --debug $@
|
||||
./node_modules/.bin/node-pre-gyp-github publish --release
|
||||
else
|
||||
echo "error: must provide either Debug or RelWithDebInfo for BUILDTYPE"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user