Skip to content

feat: experiment with composite action #1

feat: experiment with composite action

feat: experiment with composite action #1

name: Preview publish lerna package
description: Action designed to automate the process of building and publishing a preview version of a Lerna package to a github npm registry, enabling users to test and evaluate changes before the final release
inputs:
prRef:
description: Pull request reference, e.g. `main, ${{ github.event.pull_request.head.ref }}`
required: true
runs:
using: composite
steps:
- id: CI-00
uses: ./.github/workflows/preview-publish-package-00-create-status-comment.yml
secrets: inherit
with:
prRef: ${{ inputs.prRef }}
- id: CI-01
needs: [CI-00]
uses: ./.github/workflows/preview-publish-package-01-publish-prerelease.yml
secrets: inherit
with:
prRef: ${{ inputs.prRef }}
- id: CI-02
needs: [ CI-00, CI-01 ]
uses: ./.github/workflows/preview-publish-package-02-update-status-comment-on-success.yml
secrets: inherit
with:
prRef: ${{ inputs.prRef }}
- id: CI-03
needs: [ CI-00 ]
if: failure()
uses: ./.github/workflows/preview-publish-package-03-update-status-comment-on-failure.yml
secrets: inherit
with:
prRef: ${{ inputs.prRef }}
- id: CI-04
needs: [ CI-00 ]
uses: ./.github/workflows/preview-publish-package-04-remove-preview-publish-label.yml
secrets: inherit
with:
prRef: ${{ inputs.prRef }}