From 944014f0d2743c3c7e1972d40753ad6a59acd4ed Mon Sep 17 00:00:00 2001 From: Marc Straube Date: Sun, 19 Apr 2026 12:04:22 +0200 Subject: [PATCH] chore: add Socket.dev badge with auto-version via release-please Add Socket.dev security badge to README with x-release-please-version marker so the badge version updates automatically on each release. Configure release-please extra-files to include README.md in version bumps. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 1 + release-please-config.json | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 520a32c..340487b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ [![Node.js Version](https://img.shields.io/node/v/@zappzarapp/browser-utils.svg)](https://www.npmjs.com/package/@zappzarapp/browser-utils) [![License](https://img.shields.io/npm/l/@zappzarapp/browser-utils.svg)](https://www.npmjs.com/package/@zappzarapp/browser-utils) [![CI](https://github.com/marcstraube/zappzarapp-node-browser-utils/actions/workflows/ci.yml/badge.svg)](https://github.com/marcstraube/zappzarapp-node-browser-utils/actions/workflows/ci.yml) +[![Socket Badge](https://badge.socket.dev/npm/package/@zappzarapp/browser-utils/1.2.0)](https://badge.socket.dev/npm/package/@zappzarapp/browser-utils/1.2.0) Zero-dependency browser utilities with security-first design — type-safe, tree-shakeable, and fully tested. diff --git a/release-please-config.json b/release-please-config.json index ec74476..1fe4193 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,6 +6,13 @@ "package-name": "@zappzarapp/browser-utils", "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, + "extra-files": [ + { + "type": "generic", + "path": "README.md", + "regex": "badge\\.socket\\.dev/npm/package/@zappzarapp/browser-utils/(?[\\d\\.]+)" + } + ], "changelog-sections": [ { "type": "feat",