*Territory · 2 understandings*
## Summary
A prepublishOnly script set to "npm run build" makes npm publish build first, and the publish job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}` so that prepublishOnly runs the full gate: typecheck, tests, build, conformance, schemas, acceptance, acceptance backtest.
## Explanation
- A prepublishOnly script set to "npm run build" is added so npm publish always builds first.
- A prepublishOnly script set to "npm run build" is added so npm publish always builds first.
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, conformance, schemas, acceptance, acceptance backtest.
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, con…
## Threads
- A prepublishOnly script set to "npm run build" so npm publish builds first
- A prepublishOnly script set to "npm run build" is added so npm publish always builds first.
- The publish job's command and the full gate that prepublishOnly runs
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, con…
## How it formed
On Mar 22, 2026 a prepublishOnly script set to "npm run build" was added; by Oct 19, 2026 the publish job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}` with the full gate behind prepublishOnly.
- A prepublishOnly script set to "npm run build" is added so npm publish always builds first.
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, con…
## What's still open
The publish job's tag falls back to 'next' when no tag input is given.
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, con…
## Consultant
**Where it shows up** — The npm publish path keeps coming up: a prepublishOnly script set to "npm run build", and a publish job running `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}` that puts the full gate behind that hook.
**A way forward** — Keep the prepublishOnly hook as the single place the build runs, and list the gate steps in the order they run so a failure names itself.
## Understandings
- A prepublishOnly script set to "npm run build" is added so npm publish always builds first. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #50 Add prepublishOnly script to prevent pu|NeuroverseOS/Neuroverseos-governance #50 Add prepublishOnly script to prevent pu]] — 2026-03-22
- The job runs `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so `prepublishOnly` runs the full gate: typecheck, tests, build, conformance, schemas, acceptance, acceptance backtest. — from [[Bevia/World/Sources/NeuroverseOS-Neuroverseos-governance #153 CI- publish workflow for npm trusted p|NeuroverseOS/Neuroverseos-governance #153 CI: publish workflow for npm trusted p]] — 2026-10-18
## Who, where and what
Things: [[Bevia/World/Things/npm publish|npm publish]], [[Bevia/World/Things/npm publish --provenance --access public --tag ${{ inputs.tag -- 'next' }}|npm publish --provenance --access public --tag ${{ inputs.tag 'next' }}]], [[Bevia/World/Things/npm run build|npm run build]], [[Bevia/World/Things/prepublishOnly|prepublishOnly]]