diff --git a/.changeset/shiny-chefs-push.md b/.changeset/shiny-chefs-push.md new file mode 100644 index 00000000..bad28fc1 --- /dev/null +++ b/.changeset/shiny-chefs-push.md @@ -0,0 +1,5 @@ +--- +"cicd-changesets": patch +--- + +Add outputs from wrapped changesets action diff --git a/actions/cicd-changesets/action.yml b/actions/cicd-changesets/action.yml index af9e41b1..ed01130b 100644 --- a/actions/cicd-changesets/action.yml +++ b/actions/cicd-changesets/action.yml @@ -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