Skip to content

"prepare" running, even with ignore #233

@Bugs5382

Description

@Bugs5382

Action Log:

Run JS-DevTools/[email protected]
  with:
    provenance: true
    ignore-scripts: true
    token: ***
    tag: latest
  env:
    CLEAN_TAG: 0.1.0
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
    NODE_AUTH_TOKEN: XXXXX-XXXXX-XXXXX-XXXXX
Error: NpmCallError: Call to "npm publish" exited with non-zero exit code 127
> @the-rabbit-hole/[email protected] prepare
> husky

sh: 1: husky: not found
npm error code 127
npm error path /home/runner/work/eslint-config/eslint-config
npm error command failed
npm error command sh -c husky
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-09-14T02_40_27_891Z-debug-0.log

package.json:

  "scripts": {
    "prepare": "husky",
  },

Dev Depends:

  "devDependencies": {
    "@commitlint/cli": "^19.8.1",
    "@commitlint/config-conventional": "^19.8.1",
    "@types/eslint-plugin-jsx-a11y": "^6.10.0",
    "@types/eslint-plugin-tailwindcss": "^3.17.0",
    "@types/node": "^24.3.3",
    "eslint": "^9.35.0",
    "globals": "^16.4.0",
    "husky": "^9.1.7",
    "npm": "^11.6.0",
    "npm-package-json-lint": "^9.0.0",
    "npm-package-json-lint-config-default": "^8.0.1",
    "prettier": "3.6.2",
    "snazzy": "^9.0.0",
    "sort-package-json": "^3.4.0",
    "tsup": "^8.5.0"
  },

As far as I can tell, I am doing this right. here is my CI:

      - name: Publish to npm
        uses: JS-DevTools/[email protected]
        with:
          provenance: true
          ignore-scripts: true
          token: ${{ secrets.NPM_TOKEN }}
          tag: ${{ steps.set-npm-tag.outputs.NPM_TAG }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions