Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
johnnyshankman opened this issue Aug 9, 2023 · 1 comment
Closed

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

johnnyshankman opened this issue Aug 9, 2023 · 1 comment

Comments

@johnnyshankman
Copy link

johnnyshankman commented Aug 9, 2023

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?

@johnnyshankman
Copy link
Author

Nvm, issue was I had name: publish not id: publish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant