Skip to content

Commit bb667b1

Browse files
Trying the npm publish.
1 parent 2ecf715 commit bb667b1

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}
1+
0.2.0-${yyyy}${mm}${dd}.${HH}${MM}${SS}+${hash}

sdk/_config.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 0.0.1-20250703.150035+7b698b3
1+
version: 0.2.0-20250703.153040+2ecf715

sdk/generate-ts.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
#!/bin/sh
22
# run this from directory above, or with npm run generate:ts from parent directory.
33

4+
VERSION="$(cat .version)"
5+
echo $VERSION
6+
7+
set -x
48
docker run \
59
--rm \
610
--user $(id -u) \
7-
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
11+
-v ${PWD}:/local \
12+
-e VERSION="$VERSION" \
13+
openapitools/openapi-generator-cli \
14+
generate \
815
-i /local/specification/api/notify-supplier.yml \
916
-g typescript \
10-
--additional-properties=npmRepository=https://npm.pkg.github.com,npmName=@NHSDigital/nhsnotifysupplier,npmVersion=0.1.0,licenseName=MIT \
17+
--additional-properties="npmRepository=https://npm.pkg.github.com,npmName=@NHSDigital/nhsnotifysupplier,npmVersion=$VERSION,licenseName=MIT" \
1118
-o /local/sdk/typescript \
1219
--skip-validate-spec
20+
set +x
1321

22+
# sed -i -e 's|https://github.com/GIT_USER_ID/GIT_REPO_ID.git|https://github.com/NHSDigital/nhs-notify-supplier-api.git|g' ./sdk/typescript/package.json
1423

15-
sed -i -e 's|https://github.com/GIT_USER_ID/GIT_REPO_ID.git|https://github.com/NHSDigital/nhs-notify-supplier-api.git|g' ./sdk/typescript/package.json
24+
# sed -i -e 's|OpenAPI client for nhsnotifysupplier|NHS Notify Supplier SDK|g' ./sdk/typescript/package.json
25+
# sed -i -e 's|OpenAPI-Generator Contributors|NHS Notify|g' ./sdk/typescript/package.json
1626

17-
sed -i -e 's|OpenAPI client for nhsnotifysupplier|NHS Notify Supplier SDK|g' ./sdk/typescript/package.json
18-
sed -i -e 's|OpenAPI-Generator Contributors|NHS Notify|g' ./sdk/typescript/package.json
27+
# echo $VERSION

0 commit comments

Comments
 (0)