From a9be169f27d27af58c00e79ddf91cf205c7e23a7 Mon Sep 17 00:00:00 2001 From: Jose Aguirre Date: Fri, 18 Apr 2025 02:03:47 -0500 Subject: [PATCH 1/2] Add section for handle internal nuget packages in dotnet test and build-deployment-artifacts jobs --- workflow-templates/im-build-dotnet-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/workflow-templates/im-build-dotnet-ci.yml b/workflow-templates/im-build-dotnet-ci.yml index 192fa55..2601894 100644 --- a/workflow-templates/im-build-dotnet-ci.yml +++ b/workflow-templates/im-build-dotnet-ci.yml @@ -257,6 +257,13 @@ jobs: path: ~/.nuget/packages key: ${{ needs.nuget-cache.outputs.NUGET_CACHE_KEY }} + # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations + # - name: Authenticate with GitHub Packages + # uses: im-open/authenticate-with-gh-package-registries@v1.1 + # with: + # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret + # orgs: '' + - name: Build Database uses: im-open/build-database-ci-action@v3.3 with: @@ -534,6 +541,13 @@ jobs: working-directory: '.' # TODO: Update if package-lock.json is not at the root of the project run: npm rebuild + # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations + # - name: Authenticate with GitHub Packages + # uses: im-open/authenticate-with-gh-package-registries@v1.1 + # with: + # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret + # orgs: '' + - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: From 81262058cdccc210e554f1a924c07c4152ee5c77 Mon Sep 17 00:00:00 2001 From: Jose Aguirre Date: Fri, 18 Apr 2025 02:26:28 -0500 Subject: [PATCH 2/2] Fix order of Authenticate with GitHub Packages --- workflow-templates/im-build-dotnet-ci.yml | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/workflow-templates/im-build-dotnet-ci.yml b/workflow-templates/im-build-dotnet-ci.yml index 2601894..02c664c 100644 --- a/workflow-templates/im-build-dotnet-ci.yml +++ b/workflow-templates/im-build-dotnet-ci.yml @@ -257,13 +257,6 @@ jobs: path: ~/.nuget/packages key: ${{ needs.nuget-cache.outputs.NUGET_CACHE_KEY }} - # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations - # - name: Authenticate with GitHub Packages - # uses: im-open/authenticate-with-gh-package-registries@v1.1 - # with: - # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret - # orgs: '' - - name: Build Database uses: im-open/build-database-ci-action@v3.3 with: @@ -300,6 +293,13 @@ jobs: env: DOTNET_INSTALL_DIR: './.dotnet' + # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations + # - name: Authenticate with GitHub Packages + # uses: im-open/authenticate-with-gh-package-registries@v1.1 + # with: + # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret + # orgs: '' + - name: dotnet build id: build run: dotnet build ${{ env.SOLUTION_FILE }} --configuration Release @@ -541,13 +541,6 @@ jobs: working-directory: '.' # TODO: Update if package-lock.json is not at the root of the project run: npm rebuild - # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations - # - name: Authenticate with GitHub Packages - # uses: im-open/authenticate-with-gh-package-registries@v1.1 - # with: - # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret - # orgs: '' - - name: Setup .NET Core uses: actions/setup-dotnet@v4 with: @@ -555,6 +548,13 @@ jobs: env: DOTNET_INSTALL_DIR: './.dotnet' + # TODO: If the project contains internal nuget packages, uncomment and update the orgs with the needed organizations + # - name: Authenticate with GitHub Packages + # uses: im-open/authenticate-with-gh-package-registries@v1.1 + # with: + # read-pkg-token: ${{ secrets.READ_PKG_TOKEN }} # This is an org-level secret + # orgs: '' + # TODO: If the project being built publishes to Azure Event Hubs, this step is needed to build an AsyncAPI Document. # It runs a console application that calls the Mktp.Messaging.Events.Publisher.AsyncApi library. # See https://github.com/im-practices/cloud-events/blob/main/src/Mktp.Messaging.Events.Publisher.AsyncApi/README.md for more information.