Skip to content

Commit

Permalink
Update npm-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hupling authored Jan 23, 2025
1 parent 1a71050 commit 11efef7
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
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
- minor
- 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
Expand All @@ -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 }}

0 comments on commit 11efef7

Please sign in to comment.