diff --git a/.github/workflows/production-types.yml b/.github/workflows/production-types.yml index 7094dbc3..4825260a 100644 --- a/.github/workflows/production-types.yml +++ b/.github/workflows/production-types.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: jobs: Push-To-Types-Repo-Production: - if: github.event.pull_request.merged == true + if: (github.event_name == 'pull_request' && github.event.pull_request.merged == true) || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: id-token: write @@ -44,7 +44,7 @@ jobs: id: package-version uses: martinbeentjes/npm-get-version-action@main with: - path: "${{ env.TMP_SRCDIR }}" + path: "${{ env.TMP_SRCDIR }}/node" - name: Generate Typescript file working-directory: "${{ env.TMP_SRCDIR }}/node" run: |