Skip to content

Usage of outputs #164

@meesvandongen

Description

@meesvandongen

The readme currently states outputs:

Outputs
published - A boolean value to indicate whether a publishing is happened or not
publishedPackages - 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"}]

As I understand, this only makes sense in the context of github (github actions / set-output cli command).

However, internally the script also does

exportVariable('PUBLISHED', true)
exportVariable('PUBLISHED_PACKAGES', result.publishedPackages)

which is far more useful in the context of gitlab. Thus, I would suggest to update the readme to reflect this.

Which brings me to another point, the variable PUBLISHED is used as both input and output, which is problematic.
Edit: this is of course not the case due to the INPUT_ prefix.

Here is a merge request which should clarify things #165

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions