Skip to content

Commit 11efef7

Browse files
authored
Update npm-release.yml
1 parent 1a71050 commit 11efef7

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

.github/workflows/npm-release.yml

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
name: npm-release
1+
name: Npm Release
22

3-
on:
3+
on: # yamllint disable-line rule:truthy
44
workflow_dispatch:
55
inputs:
6-
releaseVersion:
6+
release-version:
77
type: choice
8-
description: "Add node release."
8+
description: "Select version increment type (follows Semantic Versioning)"
99
required: true
1010
options:
1111
- patch
1212
- minor
1313
- major
1414
app-path:
1515
type: choice
16-
description: Service-Name
16+
description: "Select the node service to release"
1717
required: true
18+
default: sps-frontend
1819
options:
19-
- sps-frontend # todo: muss angepasst werden. eigenen Ordner verwenden
20-
20+
- sps-frontend # Add or modify frontend paths according to your project structure
2121
jobs:
2222
release:
23-
name: Release
23+
name: release
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: write # to be able to publish a GitHub release
@@ -29,39 +29,35 @@ jobs:
2929
id-token: write # to enable use of OIDC for npm provenance
3030
outputs:
3131
ARTIFACT_NAME: ${{ steps.npm_release.outputs.ARTIFACT_NAME }}
32-
VERSION: ${{steps.npm_release.outputs.VERSION}}
33-
env:
34-
skipDeployment: false
32+
ARTIFACT_VERSION: ${{steps.npm_release.outputs.ARTIFACT_VERSION}}
3533
steps:
36-
- name: NPM Release
37-
id: npm_release
38-
uses: it-at-m/.github/.github/actions/action-npm-release@84-npm-docker-image-release
34+
- id: npm_release
35+
uses: it-at-m/.github/.github/actions/action-npm-release@main
3936
with:
4037
app-path: ${{inputs.app-path}}
41-
releaseVersion: ${{inputs.releaseVersion}}
38+
releaseVersion: ${{inputs.release-version}}
4239

43-
44-
build-image:
40+
build-image:
4541
runs-on: ubuntu-latest
4642
needs: release
4743
steps:
4844
- uses: it-at-m/.github/.github/actions/action-build-image@main
4945
with:
50-
path: "${{ inputs.app-path }}"
51-
image-name: "${{ inputs.app-path }}"
52-
artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }}
46+
path: "${{ inputs.app-path }}"
47+
image-name: "${{ inputs.app-path }}"
48+
artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }}
5349
registry-password: ${{ secrets.GITHUB_TOKEN }}
5450
registry-username: ${{ github.actor }}
5551
image-tags: |
56-
type=semver,pattern={{version}},value=${{ needs.release.outputs.VERSION }}
52+
type=semver,pattern={{version}},value=${{ needs.release.outputs.ARTIFACT_VERSION }}
53+
type=raw,value=latest
5754
create-github-release:
5855
needs: release
5956
runs-on: ubuntu-latest
6057
steps:
6158
- name: Create GitHub Release
6259
id: create_release
63-
uses: it-at-m/.github/.github/actions/action-create-github-release@82_addWrapper
60+
uses: it-at-m/.github/.github/actions/action-create-github-release@main
6461
with:
6562
artifact-name: ${{ needs.release.outputs.ARTIFACT_NAME }}
66-
tag-name: ${{ needs.release.outputs.VERSION }}
67-
# artifact-path: ""
63+
tag-name: ${{ needs.release.outputs.ARTIFACT_VERSION }}

0 commit comments

Comments
 (0)