diff --git a/packages/connectors-lib/package-lock.json b/packages/connectors-lib/package-lock.json index 4402ad326..afe193c46 100644 --- a/packages/connectors-lib/package-lock.json +++ b/packages/connectors-lib/package-lock.json @@ -470,4 +470,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/dynamics-lib/package-lock.json b/packages/dynamics-lib/package-lock.json index 83c9c5475..11df5f0d2 100644 --- a/packages/dynamics-lib/package-lock.json +++ b/packages/dynamics-lib/package-lock.json @@ -324,4 +324,4 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } -} \ No newline at end of file +} diff --git a/packages/fulfilment-job/package-lock.json b/packages/fulfilment-job/package-lock.json index 72691df39..8ddaa717d 100644 --- a/packages/fulfilment-job/package-lock.json +++ b/packages/fulfilment-job/package-lock.json @@ -1425,4 +1425,4 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } -} \ No newline at end of file +} diff --git a/packages/gafl-webapp-service/package-lock.json b/packages/gafl-webapp-service/package-lock.json index 9363074fb..a428252a9 100644 --- a/packages/gafl-webapp-service/package-lock.json +++ b/packages/gafl-webapp-service/package-lock.json @@ -7445,4 +7445,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/payment-mop-up-job/package-lock.json b/packages/payment-mop-up-job/package-lock.json index 171a98be5..183f1d553 100644 --- a/packages/payment-mop-up-job/package-lock.json +++ b/packages/payment-mop-up-job/package-lock.json @@ -857,4 +857,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/pocl-job/package-lock.json b/packages/pocl-job/package-lock.json index 4a9a64a04..e4cfca529 100644 --- a/packages/pocl-job/package-lock.json +++ b/packages/pocl-job/package-lock.json @@ -1300,4 +1300,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/recurring-payments-job/package-lock.json b/packages/recurring-payments-job/package-lock.json index 08e2988c1..eebf47914 100644 --- a/packages/recurring-payments-job/package-lock.json +++ b/packages/recurring-payments-job/package-lock.json @@ -870,4 +870,4 @@ } } } -} \ No newline at end of file +} diff --git a/packages/sales-api-service/package-lock.json b/packages/sales-api-service/package-lock.json index 256aabadb..28c08c682 100644 --- a/packages/sales-api-service/package-lock.json +++ b/packages/sales-api-service/package-lock.json @@ -1608,4 +1608,4 @@ } } } -} +} \ No newline at end of file diff --git a/packages/sqs-receiver-service/package-lock.json b/packages/sqs-receiver-service/package-lock.json index 1794cf665..d395507e0 100644 --- a/packages/sqs-receiver-service/package-lock.json +++ b/packages/sqs-receiver-service/package-lock.json @@ -2684,4 +2684,4 @@ } } } -} \ No newline at end of file +} diff --git a/scripts/github/deploy.sh b/scripts/github/deploy.sh index a3f9bfe59..d3b4de885 100644 --- a/scripts/github/deploy.sh +++ b/scripts/github/deploy.sh @@ -67,11 +67,6 @@ echo "Updating version from ${PREVIOUS_VERSION} to ${NEW_VERSION}" # Update package files versions, project inter-dependencies and lerna.json with new version number lerna version "${NEW_VERSION}" --yes --no-push --force-publish --exact -echo "Updating package-lock.json from ${PREVIOUS_VERSION} to ${NEW_VERSION}" -# Update package-lock.json files to reflect new versions -lerna exec -- npm install --package-lock-only - - # Generate changelog information for changes since the last tag echo "Generating changelog updates for all changes between ${PREVIOUS_VERSION} and ${NEW_VERSION}" lerna-changelog --from "${PREVIOUS_VERSION}" --to "${NEW_VERSION}" | cat - CHANGELOG.md > CHANGELOG.new && mv CHANGELOG.new CHANGELOG.md @@ -89,6 +84,14 @@ git push origin "${NEW_VERSION}" echo "Publishing latest packages to npm" lerna publish --registry=https://registry.npmjs.org/ from-git --yes --pre-dist-tag rc --no-verify-access +# Add a delay to allow NPM registry to propagate the new versions +echo "Waiting for NPM registry to propagate new versions" +sleep 30 + +echo "Updating package-lock.json from ${PREVIOUS_VERSION} to ${NEW_VERSION}" +# Update package-lock.json files to reflect new versions +lerna exec -- npm install --package-lock-only + # If we've pushed a new release into master and it is not a hotfix/patch, then merge the changes back to develop if [ "${BRANCH}" == "master" ] && [ "${RELEASE_TYPE}" != "patch" ]; then git checkout develop