From 87011d67aa6653a9fcc3b4081bee670e6474af86 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:33:20 +0100 Subject: [PATCH 01/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 2dba58c..437ddce 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -75,20 +75,17 @@ jobs: registry-username: ${{ github.actor }} image-tags: | type=semver,pattern={{version}},value=${{ needs.release.outputs.VERSION }} + + + create-github-release: needs: release runs-on: ubuntu-latest steps: - - name: Download a single artifact - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 - with: - name: ${{ needs.release.outputs.ARTIFACT_NAME }} - name: Create GitHub Release id: create_release - uses: softprops/action-gh-release@v2 + uses: it-at-m/.github/.github/actions/action-create-github-release@main with: - tag_name: ${{ needs.release.outputs.VERSION }} - draft: false - prerelease: false - generate_release_notes: false - + artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} + tag-name: ${{ needs.release.outputs.VERSION }} + artifact-path: "" From 7c57ad92593c42d6312a8e4f6b7e6ad94abcef96 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:33:41 +0100 Subject: [PATCH 02/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 437ddce..4496d51 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -88,4 +88,4 @@ jobs: with: artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} tag-name: ${{ needs.release.outputs.VERSION }} - artifact-path: "" + # artifact-path: "" From c057df9586c156ee8dc7b96983498822d4f5340a Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Jan 2025 06:34:15 +0000 Subject: [PATCH 03/23] Bump version to v0.1.23 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index 6a21eac..ba37c64 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.22", + "version": "0.1.23", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.22", + "version": "0.1.23", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 3f6e2d7..87028ef 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.22", + "version": "0.1.23", "private": true, "scripts": { "serve": "vite", From 99ce7d3d48a3fb9236e58301b7565379fe78a6ed Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 16 Jan 2025 07:36:53 +0100 Subject: [PATCH 04/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 4496d51..b30a4b5 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -84,7 +84,7 @@ jobs: steps: - name: Create GitHub Release id: create_release - uses: it-at-m/.github/.github/actions/action-create-github-release@main + uses: it-at-m/.github/.github/actions/action-create-github-release@82_addWrapper with: artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} tag-name: ${{ needs.release.outputs.VERSION }} From 39a0224d9d09a89cfb1dcd842825c28dc10c58a4 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Jan 2025 06:37:27 +0000 Subject: [PATCH 05/23] Bump version to v0.1.24 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index ba37c64..a4cea65 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.23", + "version": "0.1.24", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.23", + "version": "0.1.24", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 87028ef..4caec9c 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.23", + "version": "0.1.24", "private": true, "scripts": { "serve": "vite", From 093f39c616d49a38e56e7747d91a5ab2b161bffd Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Jan 2025 09:37:14 +0000 Subject: [PATCH 06/23] Bump version to v0.1.25 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index a4cea65..eb5eac9 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.24", + "version": "0.1.25", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.24", + "version": "0.1.25", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 4caec9c..a75ba14 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.24", + "version": "0.1.25", "private": true, "scripts": { "serve": "vite", From 5cf17226578e8bebfba3fda8ac28011238c63f0c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Jan 2025 09:43:08 +0000 Subject: [PATCH 07/23] Bump version to v0.1.26 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index eb5eac9..430c264 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.25", + "version": "0.1.26", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.25", + "version": "0.1.26", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index a75ba14..c0cd57d 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.25", + "version": "0.1.26", "private": true, "scripts": { "serve": "vite", From cabed46bc956aa746ad32318ae33844da3ca2b79 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 16 Jan 2025 09:47:33 +0000 Subject: [PATCH 08/23] Bump version to v0.1.27 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index 430c264..2249e95 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.26", + "version": "0.1.27", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.26", + "version": "0.1.27", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index c0cd57d..740c3a2 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.26", + "version": "0.1.27", "private": true, "scripts": { "serve": "vite", From af9adf2695500cfbcfe68ff01c68bc77b9c78f6c Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 17 Jan 2025 09:10:48 +0000 Subject: [PATCH 09/23] Bump version to v0.1.28 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index 2249e95..48f7abc 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.27", + "version": "0.1.28", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.27", + "version": "0.1.28", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 740c3a2..abf63f3 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.27", + "version": "0.1.28", "private": true, "scripts": { "serve": "vite", From 5a1553a31c75524e6dbce2804e8e56425db2b83f Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 17 Jan 2025 09:11:58 +0000 Subject: [PATCH 10/23] Bump version to v0.2.0 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index 48f7abc..ddf8efc 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.28", + "version": "0.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.28", + "version": "0.2.0", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index abf63f3..1ca8308 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.1.28", + "version": "0.2.0", "private": true, "scripts": { "serve": "vite", From eb0100540415ffe4eca5b1d5bfac73ba38ad38c2 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:25:21 +0100 Subject: [PATCH 11/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 80 +++++++++++++------------------ 1 file changed, 33 insertions(+), 47 deletions(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index b30a4b5..48e575b 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -1,11 +1,11 @@ -name: npm-release +name: Npm Release -on: +on: # yamllint disable-line rule:truthy workflow_dispatch: inputs: - releaseVersion: + release-version: type: choice - description: "Add node release." + description: "Select version increment type (follows Semantic Versioning)" required: true options: - patch @@ -13,14 +13,18 @@ on: - major app-path: type: choice - description: Service-Name + description: "Select the node service to release" required: true + default: sps-frontend options: - - sps-frontend # todo: muss angepasst werden. eigenen Ordner verwenden - + - sps-frontend # Add or modify frontend paths according to your project structure + skip-deployment: + default: true + type: boolean + description: "skip deployment to npm registry" jobs: release: - name: Release + name: release runs-on: ubuntu-latest permissions: contents: write # to be able to publish a GitHub release @@ -29,63 +33,45 @@ jobs: id-token: write # to enable use of OIDC for npm provenance outputs: ARTIFACT_NAME: ${{ steps.node.outputs.artifact-name }} - VERSION: ${{steps.node-release.outputs.VERSION}} - env: - skipDeployment: false + ARTIFACT_VERSION: ${{steps.npm_release.outputs.ARTIFACT_VERSION}} steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 + - id: npm_release + uses: it-at-m/lhm_actions/action-templates/actions/action-npm-release@0adbb607339cb32296289c8c319970b9ef2121cb # v1.0.2 with: - node-version: "22" - - - - id: node-release - name: Bump version and create git tag - working-directory: ./${{inputs.app-path}} - run: | - NEW_VERSION=$(npm version ${{inputs.releaseVersion}}) || exit 1 - echo "VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT" - git config --global user.email "github-actions@github.com" - git config --global user.name "GitHub Actions" - git add package.json package-lock.json - git commit -m "Bump version to ${NEW_VERSION}" || exit 1 - git tag "${NEW_VERSION}" || exit 1 - git push && git push --tags || exit 1 + app-path: ${{inputs.app-path}} + releaseVersion: ${{inputs.release-version}} - id: node uses: it-at-m/.github/.github/actions/action-npm-build@main with: - app-path: "${{ inputs.app-path }}" - - if: "${{ !env.skipDeployment }}" - run: npm publish # publish + app-path: "${{ inputs.app-path }}" + - if: "${{ !inputs.skip-deployment }}" + shell: bash + working-directory: ./${{inputs.app-path}} + run: npm --prefix ./${{ inputs.app-path }} publish --provenance --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # in der GitHub it-at-m Orga zentral hinterlegter Token - build-image: + NODE_AUTH_TOKEN: ${{ inputs.npm-token }} # Centralized token in it-at-m GitHub organization + + build-image: runs-on: ubuntu-latest needs: release steps: - - uses: it-at-m/.github/.github/actions/action-build-image@main + - uses: it-at-m/lhm_actions/action-templates/actions/action-build-image@0adbb607339cb32296289c8c319970b9ef2121cb # v1.0.2 with: - path: "${{ inputs.app-path }}" - image-name: "${{ inputs.app-path }}" - artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} + path: "${{ inputs.app-path }}" + image-name: "${{ inputs.app-path }}" + artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} registry-password: ${{ secrets.GITHUB_TOKEN }} registry-username: ${{ github.actor }} image-tags: | - type=semver,pattern={{version}},value=${{ needs.release.outputs.VERSION }} - - - + type=semver,pattern={{version}},value=${{ needs.release.outputs.ARTIFACT_VERSION }} + type=raw,value=latest create-github-release: needs: release runs-on: ubuntu-latest steps: - name: Create GitHub Release id: create_release - uses: it-at-m/.github/.github/actions/action-create-github-release@82_addWrapper + uses: it-at-m/lhm_actions/action-templates/actions/action-create-github-release@0adbb607339cb32296289c8c319970b9ef2121cb # v1.0.2 with: artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} - tag-name: ${{ needs.release.outputs.VERSION }} - # artifact-path: "" + tag-name: ${{ needs.release.outputs.ARTIFACT_VERSION }} From a60951d8134e8b0fc71939b7eddcfc8d5dacb828 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 20 Mar 2025 08:26:16 +0000 Subject: [PATCH 12/23] Bump version to v0.2.1 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index ddf8efc..f3bbae5 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.0", + "version": "0.2.1", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 1ca8308..9b7656f 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.0", + "version": "0.2.1", "private": true, "scripts": { "serve": "vite", From 1de385e2a678fe6f37e175f5f8e32c3aa9161870 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:27:26 +0100 Subject: [PATCH 13/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 48e575b..a4b2e94 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -41,7 +41,7 @@ jobs: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} - id: node - uses: it-at-m/.github/.github/actions/action-npm-build@main + uses: it-at-m/.github/.github/actions/action-npm-build@fix-npm-release with: app-path: "${{ inputs.app-path }}" - if: "${{ !inputs.skip-deployment }}" From c7b184438e0114b2a7c61509184fececb51992ed Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:47:10 +0100 Subject: [PATCH 14/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index a4b2e94..ffae153 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -36,7 +36,7 @@ jobs: ARTIFACT_VERSION: ${{steps.npm_release.outputs.ARTIFACT_VERSION}} steps: - id: npm_release - uses: it-at-m/lhm_actions/action-templates/actions/action-npm-release@0adbb607339cb32296289c8c319970b9ef2121cb # v1.0.2 + uses: it-at-m/lhm_actions/action-templates/actions/action-npm-release@fix-npm-release with: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} From aa74a9e2d99b99fc20c636a66740c7e52c67c80c Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:48:16 +0100 Subject: [PATCH 15/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index ffae153..7ff60ca 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -41,7 +41,7 @@ jobs: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} - id: node - uses: it-at-m/.github/.github/actions/action-npm-build@fix-npm-release + uses: it-at-m/lhm-actions/.github/actions/action-npm-build@fix-npm-release with: app-path: "${{ inputs.app-path }}" - if: "${{ !inputs.skip-deployment }}" From 3eb539a8fbbb0f644407b28db8d7bd30d424bf2d Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 09:50:55 +0100 Subject: [PATCH 16/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 7ff60ca..cad2907 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -41,7 +41,7 @@ jobs: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} - id: node - uses: it-at-m/lhm-actions/.github/actions/action-npm-build@fix-npm-release + uses: it-at-m/lhm_actions/.github/actions/action-npm-build@fix-npm-release with: app-path: "${{ inputs.app-path }}" - if: "${{ !inputs.skip-deployment }}" From a00b53417ed7efba0aced2593592b39b47f6cd70 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:37:13 +0100 Subject: [PATCH 17/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index cad2907..b8e2f78 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -41,7 +41,7 @@ jobs: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} - id: node - uses: it-at-m/lhm_actions/.github/actions/action-npm-build@fix-npm-release + uses: it-at-m/lhm_actions/actions/action-npm-build@fix-npm-release with: app-path: "${{ inputs.app-path }}" - if: "${{ !inputs.skip-deployment }}" From e9656ff81661bfcc5ded3f5d7f8e72e887489a57 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:39:18 +0100 Subject: [PATCH 18/23] Update npm-release.yml --- .github/workflows/npm-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index b8e2f78..2113f4c 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -41,7 +41,7 @@ jobs: app-path: ${{inputs.app-path}} releaseVersion: ${{inputs.release-version}} - id: node - uses: it-at-m/lhm_actions/actions/action-npm-build@fix-npm-release + uses: it-at-m/lhm_actions/action-templates/actions/action-npm-build@fix-npm-release with: app-path: "${{ inputs.app-path }}" - if: "${{ !inputs.skip-deployment }}" From 97e6d2431ee3722637be5cd7c9febb3e2d890894 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 20 Mar 2025 09:40:09 +0000 Subject: [PATCH 19/23] Bump version to v0.2.2 --- sps-frontend/package-lock.json | 4 ++-- sps-frontend/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sps-frontend/package-lock.json b/sps-frontend/package-lock.json index f3bbae5..8712e7e 100644 --- a/sps-frontend/package-lock.json +++ b/sps-frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.1", + "version": "0.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.1", + "version": "0.2.2", "dependencies": { "@muenchen/appswitcher-vue": "^1.0.0", "core-js": "^3.23.5", diff --git a/sps-frontend/package.json b/sps-frontend/package.json index 9b7656f..101d758 100644 --- a/sps-frontend/package.json +++ b/sps-frontend/package.json @@ -1,6 +1,6 @@ { "name": "beispielprojekt-frontend-frontend", - "version": "0.2.1", + "version": "0.2.2", "private": true, "scripts": { "serve": "vite", From bcc7d0facec0791cca7554bc4bd6a78025d55f53 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 10:49:02 +0100 Subject: [PATCH 20/23] Create codeql.yml --- .github/workflows/codeql.yml | 97 ++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..2d922c1 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,97 @@ +# Workflow for advanced CodeQL setup used for scanning Java/JavaScript/TypeScript/Vue/Python based source files +name: "CodeQL Advanced" +env: + # Whether to analyze Java code or not (only set to true if repo has Java source code) + analyze-java: true + # Build mode to use for analysis of Java code (e.g. none, autobuild, manual) + java-buildmode: "autobuild" + # Temurin JDK version to use for autobuild (only when java-buildmode is set to autobuild) + java-version: "21" + # Whether to analyze JavaScript/TypeScript/Vue code or not (only set to true if repo has Javascript/Typescript/Vue source code) + analyze-javascript-typescript-vue: true + # Whether to analyze Python code or not (only set to true if repo has Python source code) + analyze-python: false + # Query set to use when analyzing the source code (e.g. default, security-extended, security-and-quality) + analysis-query: security-and-quality + + +on: + # Runs on pull requests and on pushes to main (in order to keep the regular scanning by GitHub working) + pull_request: + push: + branches: [main] + +permissions: + pull-requests: read + security-events: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + check-changes: + name: Check changed files and directories + runs-on: ubuntu-latest + permissions: + pull-requests: read + outputs: + java: ${{ steps.filter.outputs.java }} + javascript-typescript-vue: ${{ steps.filter.outputs.javascript-typescript-vue }} + python: ${{ steps.filter.outputs.python }} + steps: + - name: Checkout repository + id: filter + uses: it-at-m/lhm_actions/action-templates/actions/action-checkout@codeql + with: + filters: | + java: + - '**/*.java' + javascript-typescript-vue: + - '**/*.js' + - '**/*.cjs' + - '**/*.mjs' + - '**/*.ts' + - '**/*.cts' + - '**/*.mts' + - '**/*.vue' + python: + - '**/*.py' + codeql-java: + name: Analyze Java source files + runs-on: ubuntu-latest + needs: check-changes + + strategy: + fail-fast: false + matrix: + build-path: ['./refarch-backend','./refarch-eai'] # JSON array formatted as string, contains the paths to the java projects to build + steps: + - uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@v1.0.3 + if: env.analyze-java && (github.ref_name == 'main' || needs.check-changes.outputs.java == 'true') + with: + codeql-language: java-kotlin + codeql-buildmode: ${{ env.java-buildmode }} + codeql-query: ${{ env.analysis-query }} + java-version: ${{ env.java-version }} + path: ${{ matrix.build-path }} + codeql-javascript-typescript-vue: + name: Analyze JavaScript/TypeScript/Vue source files + runs-on: ubuntu-latest + needs: check-changes + steps: + - uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@v1.0.3 + if: env.analyze-javascript-typescript-vue && (github.ref_name == 'main' || needs.check-changes.outputs.javascript-typescript-vue == 'true') + with: + codeql-language: javascript-typescript + codeql-query: ${{ env.analysis-query }} + codeql-python: + name: Analyze Python source files + runs-on: ubuntu-latest + needs: check-changes + steps: + - uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@v1.0.3 + if: env.analyze-python && (github.ref_name == 'main' || needs.check-changes.outputs.python == 'true') + with: + codeql-language: python + codeql-query: ${{ env.analysis-query }} From 68cb742d4c96124319b684eec5b368054626045e Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 20 Mar 2025 11:06:08 +0100 Subject: [PATCH 21/23] Update codeql.yml --- .github/workflows/codeql.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 2d922c1..326a2a0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,8 +41,10 @@ jobs: python: ${{ steps.filter.outputs.python }} steps: - name: Checkout repository - id: filter uses: it-at-m/lhm_actions/action-templates/actions/action-checkout@codeql + - name: Path Filter + id: filter + uses: it-at-m/lhm_actions/action-templates/actions/action-filter@codeql with: filters: | java: From de58ed5e5e0a3f128540864665e60b37666a6121 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Wed, 26 Mar 2025 14:40:58 +0100 Subject: [PATCH 22/23] Update codeql.yml --- .github/workflows/codeql.yml | 43 ++++++++++++------------------------ 1 file changed, 14 insertions(+), 29 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 326a2a0..85a02b0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,19 +1,18 @@ # Workflow for advanced CodeQL setup used for scanning Java/JavaScript/TypeScript/Vue/Python based source files name: "CodeQL Advanced" env: - # Whether to analyze Java code or not (only set to true if repo has Java source code) - analyze-java: true - # Build mode to use for analysis of Java code (e.g. none, autobuild, manual) - java-buildmode: "autobuild" - # Temurin JDK version to use for autobuild (only when java-buildmode is set to autobuild) - java-version: "21" - # Whether to analyze JavaScript/TypeScript/Vue code or not (only set to true if repo has Javascript/Typescript/Vue source code) - analyze-javascript-typescript-vue: true - # Whether to analyze Python code or not (only set to true if repo has Python source code) - analyze-python: false - # Query set to use when analyzing the source code (e.g. default, security-extended, security-and-quality) - analysis-query: security-and-quality - + # Whether to analyze Java code or not (only set to true if repo has Java source code) + analyze-java: true + # Build mode to use for analysis of Java code (e.g. none, autobuild, manual) + java-buildmode: "autobuild" + # Temurin JDK version to use for autobuild (only when java-buildmode is set to autobuild) + java-version: "21" + # Whether to analyze JavaScript/TypeScript/Vue code or not (only set to true if repo has Javascript/Typescript/Vue source code) + analyze-javascript-typescript-vue: true + # Whether to analyze Python code or not (only set to true if repo has Python source code) + analyze-python: false + # Query set to use when analyzing the source code (e.g. default, security-extended, security-and-quality) + analysis-query: security-and-quality on: # Runs on pull requests and on pushes to main (in order to keep the regular scanning by GitHub working) @@ -45,29 +44,15 @@ jobs: - name: Path Filter id: filter uses: it-at-m/lhm_actions/action-templates/actions/action-filter@codeql - with: - filters: | - java: - - '**/*.java' - javascript-typescript-vue: - - '**/*.js' - - '**/*.cjs' - - '**/*.mjs' - - '**/*.ts' - - '**/*.cts' - - '**/*.mts' - - '**/*.vue' - python: - - '**/*.py' codeql-java: name: Analyze Java source files runs-on: ubuntu-latest needs: check-changes - + strategy: fail-fast: false matrix: - build-path: ['./refarch-backend','./refarch-eai'] # JSON array formatted as string, contains the paths to the java projects to build + build-path: ["./refarch-backend", "./refarch-eai"] # JSON array formatted as string, contains the paths to the java projects to build steps: - uses: it-at-m/lhm_actions/action-templates/actions/action-maven-build@v1.0.3 if: env.analyze-java && (github.ref_name == 'main' || needs.check-changes.outputs.java == 'true') From 3141e9e96a900022d64d886e879d74598b0cae13 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:03:58 +0100 Subject: [PATCH 23/23] Update codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 85a02b0..3b0d8fc 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,7 +18,7 @@ on: # Runs on pull requests and on pushes to main (in order to keep the regular scanning by GitHub working) pull_request: push: - branches: [main] + branches: permissions: pull-requests: read