@@ -281,107 +281,107 @@ jobs:
281281 # CR_PAT: ${{ secrets.GITHUB_TOKEN }}
282282
283283 # ## PUBLISH NUGET
284- publishnuget :
285- name : " Publish nuget packages to nuget.pkg.github.com"
286- runs-on : ubuntu-latest
287- needs : [publish]
288- permissions :
289- packages : write
290- contents : read
291- steps :
292- - name : " Get the artefacts"
293- uses : actions/download-artifact@v6
294- with :
295- path : .
296- name : sdk-csharp-${{ inputs.version }}
297- - run : |
298- ls -la
299- - run : |
300- dotnet nuget add source \
301- --username nhs-notify-supplier-api \
302- --password ${{ secrets.GITHUB_TOKEN }} \
303- --store-password-in-clear-text \
304- --name github \
305- "https://nuget.pkg.github.com/NHSDigital/index.json"
306- - run : |
307- echo "ROOT .version file is: $(cat .version)"
308- echo "GH variable version is: ${{ inputs.version }}"
309- name: Showing the base versions
310-
311- - run : |
312- VERSION=${{ inputs.version }}
313- SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"
314- NUGET_VERSION="$(echo "$VERSION" | tr + .)"
315- echo $VERSION
316- echo $SHORT_VERSION
317- echo $NUGET_VERSION
318- SHORT_NUGET_VERSION="$(echo $NUGET_VERSION | rev | cut -d"." -f2- | rev)"
319- echo $SHORT_NUGET_VERSION
320- SHORTER_NUGET_VERSION="$(echo $SHORT_NUGET_VERSION | rev | cut -d"." -f2- | rev)"
321- echo $SHORTER_NUGET_VERSION
322- TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
323- TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
324- echo $TEST_NUGET_VERSION
325- echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
326- name: Set the nuget version
327- id: set-nuget-version
328-
329- - run : |
330- dotnet nuget push \
331- nhsnotifysupplier.${TEST_NUGET_VERSION}.nupkg \
332- --source github \
333- --api-key $GITHUB_TOKEN
334- env:
335- TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
336- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
284+ # publishnuget:
285+ # name: "Publish nuget packages to nuget.pkg.github.com"
286+ # runs-on: ubuntu-latest
287+ # needs: [publish]
288+ # permissions:
289+ # packages: write
290+ # contents: read
291+ # steps:
292+ # - name: "Get the artefacts"
293+ # uses: actions/download-artifact@v6
294+ # with:
295+ # path: .
296+ # name: sdk-csharp-${{ inputs.version }}
297+ # - run: |
298+ # ls -la
299+ # - run: |
300+ # dotnet nuget add source \
301+ # --username nhs-notify-supplier-api \
302+ # --password ${{ secrets.GITHUB_TOKEN }} \
303+ # --store-password-in-clear-text \
304+ # --name github \
305+ # "https://nuget.pkg.github.com/NHSDigital/index.json"
306+ # - run: |
307+ # echo "ROOT .version file is: $(cat .version)"
308+ # echo "GH variable version is: ${{ inputs.version }}"
309+ # name: Showing the base versions
337310
338- # ## Publish NPM
311+ # - run: |
312+ # VERSION=${{ inputs.version }}
313+ # SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"
314+ # NUGET_VERSION="$(echo "$VERSION" | tr + .)"
315+ # echo $VERSION
316+ # echo $SHORT_VERSION
317+ # echo $NUGET_VERSION
318+ # SHORT_NUGET_VERSION="$(echo $NUGET_VERSION | rev | cut -d"." -f2- | rev)"
319+ # echo $SHORT_NUGET_VERSION
320+ # SHORTER_NUGET_VERSION="$(echo $SHORT_NUGET_VERSION | rev | cut -d"." -f2- | rev)"
321+ # echo $SHORTER_NUGET_VERSION
322+ # TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
323+ # TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
324+ # echo $TEST_NUGET_VERSION
325+ # echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
326+ # name: Set the nuget version
327+ # id: set-nuget-version
339328
340- publishnpm :
341- name : " Publish npm packages to npm.pkg.github.com"
342- runs-on : ubuntu-latest
343- needs : [publish]
344- permissions :
345- packages : write
346- contents : read
347- steps :
348- - name : " Get the artefacts"
349- uses : actions/download-artifact@v6
350- with :
351- path : .
352- name : sdk-ts-${{ inputs.version }}
353- - uses : actions/setup-node@v6
354- with :
355- node-version : " 24.3"
356- registry-url : " https://npm.pkg.github.com"
357- scope : " @NHSDigital"
358-
359- - run : ls -la
360- - run : npm cache clear --force
361- - run : npm i
362- - run : npm run build
363- - run : ls -la
364- - run : npm publish --verbose --tag next
365- env :
366- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
329+ # - run: |
330+ # dotnet nuget push \
331+ # nhsnotifysupplier.${TEST_NUGET_VERSION}.nupkg \
332+ # --source github \
333+ # --api-key $GITHUB_TOKEN
334+ # env:
335+ # TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
336+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
367337
368- success :
369- name : " Success notification"
370- runs-on : ubuntu-latest
371- needs : [publish, publishnpm]
372- steps :
373- - name : " Check prerequisites for notification"
374- id : check
375- run : echo "secret_exist=${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL != '' }}" >> $GITHUB_OUTPUT
376- - name : " Notify on publishing packages"
377- if : steps.check.outputs.secret_exist == 'true'
378- uses :
nhs-england-tools/[email protected] 379- with :
380- github-token : ${{ secrets.GITHUB_TOKEN }}
381- teams-webhook-url : ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL }}
382- message-title : " Notification title"
383- message-text : " This is a notification body"
384- link : ${{ github.event.pull_request.html_url }}
338+ # ### Publish NPM
339+
340+ # publishnpm:
341+ # name: "Publish npm packages to npm.pkg.github.com"
342+ # runs-on: ubuntu-latest
343+ # needs: [publish]
344+ # permissions:
345+ # packages: write
346+ # contents: read
347+ # steps:
348+ # - name: "Get the artefacts"
349+ # uses: actions/download-artifact@v6
350+ # with:
351+ # path: .
352+ # name: sdk-ts-${{ inputs.version }}
353+ # - uses: actions/setup-node@v6
354+ # with:
355+ # node-version: "24.3"
356+ # registry-url: "https://npm.pkg.github.com"
357+ # scope: "@NHSDigital"
358+
359+ # - run: ls -la
360+ # - run: npm cache clear --force
361+ # - run: npm i
362+ # - run: npm run build
363+ # - run: ls -la
364+ # - run: npm publish --verbose --tag next
365+ # env:
366+ # NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
367+
368+ # success:
369+ # name: "Success notification"
370+ # runs-on: ubuntu-latest
371+ # needs: [publish, publishnpm]
372+ # steps:
373+ # - name: "Check prerequisites for notification"
374+ # id: check
375+ # run: echo "secret_exist=${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL != '' }}" >> $GITHUB_OUTPUT
376+ # - name: "Notify on publishing packages"
377+ # if: steps.check.outputs.secret_exist == 'true'
378+ # uses: nhs-england-tools/[email protected] 379+ # with:
380+ # github-token: ${{ secrets.GITHUB_TOKEN }}
381+ # teams-webhook-url: ${{ secrets.TEAMS_NOTIFICATION_WEBHOOK_URL }}
382+ # message-title: "Notification title"
383+ # message-text: "This is a notification body"
384+ # link: ${{ github.event.pull_request.html_url }}
385385
386386 # Take out for now - might add again in the future
387387 # ### PUBLISH LIBS ABSTRACTION NUGET
0 commit comments