@neofaceid/web-sdk 1.6.0 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -292,6 +292,34 @@ Para personalizar a aparência do modal de captura facial, adicione os estilos C
292
292
  - Considere implementar rate limiting para evitar abusos
293
293
  - Implemente logs de auditoria para rastrear tentativas de autenticação
294
294
 
295
+ ## Deploy Automático
296
+
297
+ O SDK é publicado automaticamente no NPM quando há push na branch `master`. O workflow:
298
+
299
+ 1. **Valida** que está rodando na branch master
300
+ 2. **Verifica** se a versão atual já existe no NPM (idempotente)
301
+ 3. **Determina** o tipo de bump (patch/minor) baseado no commit message
302
+ 4. **Incrementa** a versão em todos os arquivos (package.json, package-lock.json, src/version.ts)
303
+ 5. **Commita** e faz push das mudanças com retry logic
304
+ 6. **Builda** o pacote
305
+ 7. **Publica** no NPM com retry automático em caso de falhas temporárias
306
+
307
+ ### Convenções de Commit
308
+
309
+ - `feat:` ou `feature:` → bump **minor** (1.0.0 → 1.1.0)
310
+ - `fix:` ou `patch:` → bump **patch** (1.0.0 → 1.0.1)
311
+ - Outros commits → bump **patch** por padrão
312
+
313
+ ### Idempotência
314
+
315
+ O workflow é idempotente: se a versão já existe no NPM, o deploy é pulado automaticamente sem erro.
316
+
317
+ ### Retry Logic
318
+
319
+ - **Git sync**: 3 tentativas com backoff exponencial
320
+ - **NPM publish**: 3 tentativas com backoff exponencial
321
+ - **Erro 409**: Verifica se versão existe antes de falhar
322
+
295
323
  ## Licença
296
324
 
297
- MIT
325
+ MIT