*Continent · 2 territory*
## Summary
A prepublishOnly script set to "npm run build" is added so npm publish always builds first. The publish 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.
## 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 command with provenance, public access and a tag defaulting to 'next', running the full gate
- 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 ran `npm publish --provenance --access public --tag ${{ inputs.tag || 'next' }}`, so prepublishOnly ran the full gate.
- 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 gate covers typecheck, tests, build, conformance, schemas, acceptance and acceptance backtest before anything ships.
- 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 publish step keeps coming up: a prepublishOnly script set to "npm run build", and a publish command with --provenance, --access public and a tag defaulting to 'next'.
**A way forward** — Keep the gate where it is and write down, next to the publish command, the exact list of checks it runs, so the order is visible when a release goes out.
## Ideas
- Making the publish step build first, so a release cannot go out without a fresh build.
- Letting the publish command carry the whole gate, so typecheck, tests, build, conformance, schemas, acceptance and the backtest all run before anything ships.
## Territories
- [[Bevia/World/Territories/npm publish provenance gate command|npm publish provenance gate command]]
- [[Bevia/World/Territories/npm publish build hook and full gate|npm publish build hook and full gate]]