1
- name : npm-release
1
+ name : Npm Release
2
2
3
- on :
3
+ on : # yamllint disable-line rule:truthy
4
4
workflow_dispatch :
5
5
inputs :
6
- releaseVersion :
6
+ release-version :
7
7
type : choice
8
- description : " Add node release. "
8
+ description : " Select version increment type (follows Semantic Versioning) "
9
9
required : true
10
10
options :
11
11
- patch
12
12
- minor
13
13
- major
14
14
app-path :
15
15
type : choice
16
- description : Service-Name
16
+ description : " Select the node service to release "
17
17
required : true
18
+ default : sps-frontend
18
19
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
21
21
jobs :
22
22
release :
23
- name : Release
23
+ name : release
24
24
runs-on : ubuntu-latest
25
25
permissions :
26
26
contents : write # to be able to publish a GitHub release
@@ -29,39 +29,35 @@ jobs:
29
29
id-token : write # to enable use of OIDC for npm provenance
30
30
outputs :
31
31
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}}
35
33
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
39
36
with :
40
37
app-path : ${{inputs.app-path}}
41
- releaseVersion : ${{inputs.releaseVersion }}
38
+ releaseVersion : ${{inputs.release-version }}
42
39
43
-
44
- build-image :
40
+ build-image :
45
41
runs-on : ubuntu-latest
46
42
needs : release
47
43
steps :
48
44
- uses : it-at-m/.github/.github/actions/action-build-image@main
49
45
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 }}
53
49
registry-password : ${{ secrets.GITHUB_TOKEN }}
54
50
registry-username : ${{ github.actor }}
55
51
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
57
54
create-github-release :
58
55
needs : release
59
56
runs-on : ubuntu-latest
60
57
steps :
61
58
- name : Create GitHub Release
62
59
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
64
61
with :
65
62
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