From 11efef703c9c333d48952eb9d27649dcd5952101 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Thu, 23 Jan 2025 10:54:15 +0100 Subject: [PATCH] Update npm-release.yml --- .github/workflows/npm-release.yml | 44 ++++++++++++++----------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index beb0679..79f02ed 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,14 @@ 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 jobs: release: - name: Release + name: release runs-on: ubuntu-latest permissions: contents: write # to be able to publish a GitHub release @@ -29,39 +29,35 @@ jobs: id-token: write # to enable use of OIDC for npm provenance outputs: ARTIFACT_NAME: ${{ steps.npm_release.outputs.ARTIFACT_NAME }} - VERSION: ${{steps.npm_release.outputs.VERSION}} - env: - skipDeployment: false + ARTIFACT_VERSION: ${{steps.npm_release.outputs.ARTIFACT_VERSION}} steps: - - name: NPM Release - id: npm_release - uses: it-at-m/.github/.github/actions/action-npm-release@84-npm-docker-image-release + - id: npm_release + uses: it-at-m/.github/.github/actions/action-npm-release@main with: app-path: ${{inputs.app-path}} - releaseVersion: ${{inputs.releaseVersion}} + releaseVersion: ${{inputs.release-version}} - - build-image: + build-image: runs-on: ubuntu-latest needs: release steps: - uses: it-at-m/.github/.github/actions/action-build-image@main 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/.github/.github/actions/action-create-github-release@main with: artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }} - tag-name: ${{ needs.release.outputs.VERSION }} - # artifact-path: "" + tag-name: ${{ needs.release.outputs.ARTIFACT_VERSION }}