diff --git a/.github/workflows/publish-prerelease.yaml b/.github/workflows/publish-prerelease.yaml index 496b2542..70a441ee 100644 --- a/.github/workflows/publish-prerelease.yaml +++ b/.github/workflows/publish-prerelease.yaml @@ -85,7 +85,7 @@ jobs: COMMIT_DATE=$(date -d @$COMMIT_TIMESTAMP +%Y%m%d-%H%M%S) GIT_HASH=$(git rev-parse --short HEAD) PRERELEASE_TAG=nightly-$(echo "${{ github.ref_name }}" | sed -r 's/[^a-z0-9]+/-/gi') - yarn release:bump-prerelease --no-changelog --no-commit-hooks --preid "$PRERELEASE_TAG-$COMMIT_DATE-$GIT_HASH" prerelease --yes + yarn release:bump-prerelease-ci --no-changelog --no-commit-hooks --preid "$PRERELEASE_TAG-$COMMIT_DATE-$GIT_HASH" prerelease --yes env: CI: true - name: Publish to NPM diff --git a/package.json b/package.json index 55e30eae..e85dc925 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "release:set-version": "lerna version --exact --no-changelog --no-push --yes && yarn fix-version", "release:bump-release": "lerna version --exact --conventional-commits --conventional-graduate --tag-version-prefix='v' --no-push --force-publish='*' && yarn fix-version", "release:bump-prerelease": "lerna version --exact --conventional-commits --conventional-prerelease --tag-version-prefix='v' --no-push --force-publish='*' && yarn fix-version", + "release:bump-prerelease-ci": "lerna version --exact --conventional-commits --conventional-prerelease --tag-version-prefix='v' --no-push --force-publish='*'", "fix-version": "node scripts/fix-version.js", "setup": "lerna bootstrap", "reset": "node scripts/reset.js", diff --git a/packages/connector/src/MosDevice.ts b/packages/connector/src/MosDevice.ts index 9b11114a..83933b61 100644 --- a/packages/connector/src/MosDevice.ts +++ b/packages/connector/src/MosDevice.ts @@ -1539,6 +1539,13 @@ export class MosDevice implements IMOSDevice { throw new Error('Buddy server cannot respond because main server is available') } + if ( + reply.mos.roAck && + reply.mos.roAck.roStatus === 'Main server back on line but not yet updated with most recent data' + ) { + throw new Error('Main server back on line but not yet updated with most recent data') + } + if (reply.mos.mosAck && reply.mos.mosAck.status === 'NACK') { throw new Error(`Error in response: ${reply.mos.mosAck.statusDescription || 'No statusDescription given'}`) }