diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 466d0f144e..27264ae4e4 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -90,9 +90,8 @@ jobs: - name: Show packed node_modules working-directory: ${{ env.EXECUTORCH_DIR }} - if: failure() && steps.node_modules.outcome == 'failure' - run: >- - ! grep -E "node_modules/.+" build.log + if: failure() && steps.check_node_modules.outcome == 'failure' + run: grep -E "node_modules/.+" build.log - name: Add package name to env working-directory: ${{ env.EXECUTORCH_DIR }}