This repository holds reusable gha workflow and pipeline definitions
Add a workflow to your repository like so:
name: ci
on: [push]
# The reusable workflow needs these permissions on the caller's token.
# Under the default (read-only) permissions the pipeline fails on tag
# creation / version commits and on npm provenance when publishing.
permissions:
contents: write # tag creation and version commits
id-token: write # npm provenance when publishing
jobs:
pipe:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
uses: openmfp/gha/.github/workflows/pipeline-node-module.yml@main
secrets:
# Required to publish; omit it together with `publish: false` below
# if your package is not published.
OPENMFP_PUBLISHER_PRIVATE_KEY: ${{ secrets.OPENMFP_PUBLISHER_PRIVATE_KEY }}
with:
# The deployment environment that holds the publishing credentials.
environment: npmjs:@openmfp/your-packageIf the package is not published, drop the secrets block and the
environment input and disable publishing instead:
jobs:
pipe:
uses: openmfp/gha/.github/workflows/pipeline-node-module.yml@main
with:
publish: falseThe release is performed automatically by merging to the main branch, since the other repositories are using the workflows from there.
gha requires a GitHub fork with a pipeline, that is using the workflows, to validate the changes.
Please refer to the CONTRIBUTING.md file in this repository for instructions on how to contribute to openMFP.
Please refer to the CODE_OF_CONDUCT.md file in this repository informations on the expected Code of Conduct for contributing to openMFP.
Copyright 2024 SAP SE or an SAP affiliate company and openMFP contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.
