Skip to content

Npm Release

Npm Release #38

Workflow file for this run

name: npm-release
on:
workflow_dispatch:
inputs:
releaseVersion:
type: choice
description: "Add node release."
required: true
options:
- patch
- minor
- major
app-path:
type: choice
description: Service-Name
required: true
options:
- sps-frontend # todo: muss angepasst werden. eigenen Ordner verwenden
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
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
steps:
- name: NPM Release
id: npm_release
uses: it-at-m/.github/.github/actions/action-npm-release@84-npm-docker-image-release
with:
app-path: ${{inputs.app-path}}
releaseVersion: ${{inputs.releaseVersion}}
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 }}
registry-password: ${{ secrets.GITHUB_TOKEN }}
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: Create GitHub Release
id: create_release
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 }}
# artifact-path: ""