Skip to content

ci(github-actions): bump SAP/fosstars-rating-core-action #113

ci(github-actions): bump SAP/fosstars-rating-core-action

ci(github-actions): bump SAP/fosstars-rating-core-action #113

on:
workflow_dispatch:
inputs:
new-version:
description: 'The semver version of the new release'
required: true
type: string
package-folder:
description: 'The package to be released'
required: true
type: choice
options:
- middleware-code-coverage
push:
branches:
- main
name: release-please
jobs:
pull-request:
runs-on: ubuntu-22.04
outputs:
releases_created: ${{steps.release.outputs.releases_created}}
paths_released: ${{steps.release.outputs.paths_released}}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{secrets.GH_OPENUI5BOT}}
monorepo-tags: true
release-as: ${{ inputs.new-version }}
path: packages/${{ inputs.package-folder }}
publish-package:
needs: pull-request
if: ${{needs.pull-request.outputs.releases_created}}
runs-on: ubuntu-22.04
strategy:
matrix:
path_released: ${{fromJson(needs.pull-request.outputs.paths_released)}}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js LTS 18.x
uses: actions/setup-node@v3.6.0
with:
node-version: 18.x
- name: Publish to NPM
env:
NPM_TOKEN: ${{secrets.NPM_UI5BOT}}
run: |
cd ${{ matrix.path_released }}
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc
npm publish --workspaces false --access public