Skip to content

Commit cf817ee

Browse files
committed
CCM-13038: use branch version of internal repo
1 parent 975aecc commit cf817ee

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

.github/scripts/dispatch_internal_repo_workflow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ if [[ -z "$overrides" ]]; then
175175
fi
176176

177177
if [[ -z "$internalRef" ]]; then
178-
internalRef="main"
178+
internalRef="feature/CCM-13038"
179179
fi
180180

181181
if [[ -z "$runId" ]]; then

.github/workflows/stage-2-test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
name: "Pact tests"
109109
runs-on: ubuntu-latest
110110
timeout-minutes: 5
111+
permissions:
112+
packages: write
113+
contents: read
111114
steps:
112115
- name: "Checkout code"
113116
uses: actions/checkout@v5
@@ -129,6 +132,8 @@ jobs:
129132
- name: "Run PACT tests"
130133
run: npm run test:pact --workspace tests
131134
- name: Publish Pact Contracts
135+
env:
136+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
132137
run: ./scripts/publish-pact-contracts.sh
133138
test-lint:
134139
name: "Linting"

infrastructure/terraform/components/api/pre.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# # It ensures all Node.js dependencies are installed, generates any required dependencies,
33
# # and builds all Lambda functions in the workspace before Terraform provisions infrastructure.
44

5-
ROOT_DIR="$(git rev-parse --show-toplevel)"
5+
echo "Running pre.sh"
66

7-
$ROOT_DIR/scripts/set_github_packages_token.sh
7+
npm config --location user set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
88

99
npm ci
1010

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pact-contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nhsdigital/notify-supplier-api-consumer-contracts",
3-
"version": "1.2.0",
3+
"version": "1.0.0",
44
"description": "NHS Notify Supplier API Pact contracts",
55
"license": "MIT",
66
"repository": {

scripts/publish-pact-contracts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ if [[ $local_version == $published_version ]]; then
2222
fi
2323

2424
echo "Local version is different to the latest published version - publishing new version"
25-
npm pack ./pact-contracts
25+
npm publish ./pact-contracts

0 commit comments

Comments
 (0)