diff --git a/.github/workflows/publish-generator-cli.yml b/.github/workflows/publish-generator-cli.yml index eeee1ddcb3..a06a0eef9f 100644 --- a/.github/workflows/publish-generator-cli.yml +++ b/.github/workflows/publish-generator-cli.yml @@ -1,7 +1,8 @@ name: Publish Generator CLI on: - workflow_call: + push: + tags: ["*"] env: PACKAGE_NAME: "@fern-api/generator-cli" @@ -13,6 +14,7 @@ env: jobs: publish_sdk: + if: github.ref_type == 'tag' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/generator-cli@') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4