Skip to content

publish.steps.type is always null #17

Closed
@wolfflow

Description

@wolfflow

What

Fix documentation typo
Post-publish check for publish.steps.type != 'none' always fails as it is not being an updated part of publish step and always equals to null (see action debug output below)

##[debug]Evaluating: (success() && (steps.publish.outputs.type != 'none'))
......
......
##[debug]..Evaluating NotEqual:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating steps:
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'publish'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'type'
##[debug]....=> null
##[debug]....Evaluating Null:
##[debug]....=> null
##[debug]..=> false
##[debug]=> false
##[debug]Expanded: (true && (null != 'none'))

How

Update documentation: mention that one should use publish.steps.outputs.type instead of publish.steps.type.

Action debug output is below (how it works with steps.publish.outputs.type set properly):

##[debug]Evaluating: (success() && (steps.publish.outputs.type != 'none'))
##[debug]Evaluating And:
##[debug]..Evaluating success:
##[debug]..=> true
##[debug]..Evaluating NotEqual:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating Index:
##[debug]..........Evaluating steps:
##[debug]..........=> Object
##[debug]..........Evaluating String:
##[debug]..........=> 'publish'
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'outputs'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'type'
##[debug]....=> 'patch'
##[debug]....Evaluating String:
##[debug]....=> 'none'
##[debug]..=> true
##[debug]=> true
##[debug]Expanded: (true && ('patch' != 'none'))
##[debug]Result: true

Result

Documentation is updated

Activity

added a commit that references this issue on Oct 20, 2020

JS-DevTools#17 - Fix documentation for Output Variables - steps.publi…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @wolfflow

      Issue actions

        publish.steps.type is always null · Issue #17 · JS-DevTools/npm-publish