Skip to content
Snippets Groups Projects
Commit 9fdeae2f authored by Bartek Wrona's avatar Bartek Wrona
Browse files

DIST_TAG value forwarded to npm_generate_version.sh call.

parent 0c772cf4
No related branches found
No related tags found
1 merge request!57Improvements in dist-tag detection rules to correctly publish NPM package
...@@ -8,10 +8,11 @@ REGISTRY_URL="${2:?Missing arg #2 pointing an NPM registry URL}" ...@@ -8,10 +8,11 @@ REGISTRY_URL="${2:?Missing arg #2 pointing an NPM registry URL}"
SCOPE="${3:?Missing arg #3 pointing a package scope}" SCOPE="${3:?Missing arg #3 pointing a package scope}"
PROJECT_NAME="${4:?Missing arg #4 pointing a project name}" PROJECT_NAME="${4:?Missing arg #4 pointing a project name}"
OUTPUT_DIR="${5:?Missing arg #5 pointing an output directory}" OUTPUT_DIR="${5:?Missing arg #5 pointing an output directory}"
DIST_TAG="${6:-dev}"
pushd "${SOURCE_DIR}" # move to the project directory (where package.json file is located) pushd "${SOURCE_DIR}" # move to the project directory (where package.json file is located)
"${SCRIPTPATH}/npm_generate_version.sh" "${SOURCE_DIR}" "${REGISTRY_URL}" "${SCOPE}" "${PROJECT_NAME}" "${SCRIPTPATH}/npm_generate_version.sh" "${SOURCE_DIR}" "${REGISTRY_URL}" "${SCOPE}" "${PROJECT_NAME}" "${DIST_TAG}"
npm run build npm run build
npm pack --pack-destination "${OUTPUT_DIR}" --json > "${OUTPUT_DIR}/built_package_info.json" npm pack --pack-destination "${OUTPUT_DIR}" --json > "${OUTPUT_DIR}/built_package_info.json"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment