# 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 : ```bash npm config set //git.hyko.cx/api/packages/zen/npm/:_authToken TOKEN ``` ### Checklist avant publication - [ ] `npm audit` — aucune vulnérabilité `high` ou `critical` - [ ] `npm run build` — build sans erreur ni warning TypeScript - [ ] Version mise à jour dans `package.json` ### Versionner On suit [semver](https://semver.org) : - **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 ```bash npm version patch # ou minor, ou major ``` ### Publier ```bash npm publish ``` Le script `prepublishOnly` lance le build automatiquement. Si le build échoue, la publication est annulée.