Skip to content

Commit

Permalink
Add outputs to wrapped changesets action (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: frank zhu <[email protected]>
  • Loading branch information
chainchad and momentmaker authored Nov 13, 2023
1 parent 1bcaa62 commit 0078f36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-chefs-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cicd-changesets": patch
---

Add outputs from wrapped changesets action
14 changes: 14 additions & 0 deletions actions/cicd-changesets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,20 @@ inputs:
description: ""
required: false
default: "false"
outputs:
published:
description: A boolean value to indicate whether a publishing is happened or not
value: ${{ steps.changesets.outputs.published }}
publishedPackages:
description: >
A JSON array to present the published packages. The format is `[{"name": "@xx/xx", "version": "1.2.0"}, {"name": "@xx/xy", "version": "0.8.9"}]`
value: ${{ steps.changesets.outputs.publishedPackages }}
hasChangesets:
description: A boolean about whether there were changesets. Useful if you want to create your own publishing functionality.
value: ${{ steps.changesets.outputs.hasChangesets }}
pullRequestNumber:
description: The pull request number that was created or updated
value: ${{ steps.changesets.outputs.pullRequestNumber }}

runs:
using: composite
Expand Down

0 comments on commit 0078f36

Please sign in to comment.