260fcfc4f8
Move the "Publier le package" section from DEV.md to a new PUBLICATION.md file, and add references to ARCHITECTURE.md and PUBLICATION.md in the main DEV.md index. This reduces the size of DEV.md and improves discoverability by grouping related content into focused documents.
988 B
988 B
Publier le package
Le package @zen/core est publié sur le registre npm privé à https://git.hyko.cx.
Configurer l'authentification (une seule fois)
Créer un token dans Gitea : Settings → Applications → Generate Token, puis :
npm config set //git.hyko.cx/api/packages/zen/npm/:_authToken TOKEN
Checklist avant publication
npm audit— aucune vulnérabilitéhighoucriticalnpm run build— build sans erreur ni warning TypeScript- Version mise à jour dans
package.json
Versionner
On suit semver :
- patch (
1.3.x) — correction de bug, sans changement d'interface - minor (
1.x.0) — nouvelle fonctionnalité, rétrocompatible - major (
x.0.0) — changement cassant
npm version patch # ou minor, ou major
Publier
npm publish
Le script prepublishOnly lance le build automatiquement. Si le build échoue, la publication est annulée.