Skip to content

Commit 45ac097

Browse files
committed
CCM-15633: Tweaks for Pact publishing
1 parent 167aea9 commit 45ac097

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pact-contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"test:unit:coverage": "echo Unit tests not required",
1818
"typecheck": "echo Typecheck not required"
1919
},
20-
"version": "0.0.1"
20+
"version": "1.0.0"
2121
}

scripts/publish-pact-contracts.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env bash
22

3-
set -euo pipefail
43

54
published_version=$(npm view @nhsdigital/notify-digital-letters-consumer-contracts --json 2>/dev/null | jq -r '.["dist-tags"].latest')
65

6+
set -euo pipefail
7+
78
# Fail if there are uncommitted changes as this indicates unexpected changes to the contracts
89
git diff --quiet tests/pact-tests
910

tests/pact-tests/utils/pact-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path';
33
export const PACT_CONSUMER = 'digital-letters';
44
export const PACT_PROVIDER = 'status-published';
55
export const PACT_MESSAGE_DESCRIPTION =
6-
'ChannelStatusPublished-letter-opted-out';
6+
'ChannelStatusPublished-paper_letter_opted_out';
77
export const PACT_DIRECTORY = path.resolve(
88
__dirname,
99
'../.pacts/status-published',

0 commit comments

Comments
 (0)