From 0078f365db96509ec63c3c0a6fd9a99655c77e53 Mon Sep 17 00:00:00 2001 From: chainchad <96362174+chainchad@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:29:09 -0500 Subject: [PATCH] Add outputs to wrapped changesets action (#30) Co-authored-by: frank zhu --- .changeset/shiny-chefs-push.md | 5 +++++ actions/cicd-changesets/action.yml | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .changeset/shiny-chefs-push.md 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