feat: experiment with composite action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |