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.
37 lines
988 B
Markdown
37 lines
988 B
Markdown
# 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. |