Skip to content

I Don't Get type When Publishing To Private Repos #128

Closed
@johnnyshankman

Description

@johnnyshankman

Setup:

      - name: Publish New ESLint Release on npm
        uses: JS-DevTools/npm-publish@v2
        with:
          token: ${{ secrets.NPM_PUBLISH_TOKEN }}
          strategy: upgrade

      - if: ${{ !steps.publish.outputs.type }}
        run: echo 'Version already exists' && exit 1

Does not work as expected. The if triggers every time even on successful upgrades.

This also does not work:

      - name: Publish New ESLint Release on npm
        uses: JS-DevTools/npm-publish@v2
        with:
          token: ${{ secrets.NPM_PUBLISH_TOKEN }}
          strategy: upgrade

      - if: ${{ steps.publish.outputs.type == '' }}
        run: echo 'Version already exists' && exit 1

Is there something I'm doing wrong?

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