npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

claudia-ynov-react-form

v1.0.1

Published

## Objectif du projet

Readme

inte-et-dep-continu

Objectif du projet

Dans le cadre du TP d'Intégration et Déploiement Continu, j'ai mis en place :

  • Une publication automatique sur npm
  • Une gestion des versions avec Semantic Versioning
  • Un pipeline CI/CD avec GitHub Actions
  • Une logique de publication conditionnelle (bypass intelligent)

L'objectif était de simuler un workflow professionnel complet : build → test → publish → deploy.


Package NPM

Le package est disponible publiquement sur npm :

https://www.npmjs.com/package/claudia-ynov-react-form

Installation :

npm install claudia-ynov-react-form


Semantic Versioning

Le projet utilise le versioning sémantique :

MAJOR.MINOR.PATCH

Exemples réalisés dans ce TP :

  • 0.1.2 → patch
  • 0.2.0 → minor
  • 1.0.0 → major

Commandes utilisées :

npm version patch
npm version minor
npm version major

Chaque version crée automatiquement :

  • Un commit
  • Un tag Git
  • Un déclenchement du workflow CI/CD

Pipeline CI/CD

Le workflow GitHub Actions contient trois jobs en cascade :

  1. build-and-test
    • Installation des dépendances
    • Lancement des tests
    • Build du projet
  2. publish-npm
    • Vérification de la différence entre la version locale et celle publiée sur npm
    • Publication uniquement si la version a changé
    • Utilisation sécurisée du NPM_TOKEN
  3. deploy
    • Étape simulée de déploiement

La publication est conditionnelle grâce à un contrôle :

npm view <package-name>{=html} version

Si la version est identique → publication ignorée.
Si la version est différente → publication automatique.


Sécurité

La publication npm utilise un token sécurisé :

NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Le token est stocké dans les Secrets GitHub et n'est jamais exposé.


Validation du bypass

Test réalisé :

  • Modification du README sans changement de version
  • Workflow exécuté
  • Étape Publish to NPM ignorée

Puis :

  • npm version patch
  • Publication déclenchée automatiquement

Technologies utilisées

  • React
  • Babel
  • GitHub Actions
  • npm
  • Semantic Versioning

Conclusion

Ce TP m'a permis de mettre en place un pipeline CI/CD complet avec :

  • Gestion automatisée des versions
  • Publication conditionnelle sur npm
  • Sécurisation via token
  • Organisation des jobs avec needs

Le projet reproduit un workflow professionnel utilisé en environnement réel.