diff --git a/docs/dev/DEV.md b/docs/dev/DEV.md new file mode 100644 index 0000000..9f2139b --- /dev/null +++ b/docs/dev/DEV.md @@ -0,0 +1,23 @@ +# DEV + +## Publier le package + +Le package `@hykocx/zen` est publié sur le registre npm à `https://git.hyko.cx`. + +### 1. Configurer l'authentification + +Créer un token d'accès dans Gitea (Settings → Applications → Generate Token), puis l'enregistrer localement : + +```bash +npm config set //git.hyko.cx/api/packages/hykocx/npm/:_authToken TOKEN +``` + +Remplacer `TOKEN` par le token généré. + +### 2. Build et publish + +```bash +npm publish +``` + +Le script `prepublishOnly` lance automatiquement le build avant la publication. diff --git a/package-lock.json b/package-lock.json index 32f2374..84bc733 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@hykocx/zen", - "version": "1.4.0", + "version": "1.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@hykocx/zen", - "version": "1.4.0", + "version": "1.3.1", "license": "GPL-3.0-only", "dependencies": { "@headlessui/react": "^2.0.0",