diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 6a681c7..8b0a40c 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -105,6 +105,12 @@ jobs: install-command: ${{ inputs.install-command }} github-packages-token: ${{ secrets.packages-token || github.token }} + # The vendored actions repo is only needed for setup-node above. Remove it before any + # quality command runs so workspace-wide linters/formatters (e.g. `eslint .`, `prettier + # --check .`) only ever see the consuming project's own files, never this CI machinery. + - name: Remove vendored CI actions before quality checks + run: rm -rf .github-workflows + - name: Package check if: ${{ inputs.package-check-command != '' }} working-directory: ${{ inputs.working-directory }}