024d6e37e6
Reverts the package version in package-lock.json from 1.4.0 back to 1.3.1
24 lines
526 B
Markdown
24 lines
526 B
Markdown
# 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.
|