From 99c3e8b73f7b8688cfd716c2ccd0d9c59155a811 Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sat, 25 Oct 2025 17:09:30 +0200 Subject: [PATCH 1/2] chore: add GitHub workflows for automated NPM publishing and releases --- .github/workflows/publish-npm.yaml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 15 +++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/publish-npm.yaml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml new file mode 100644 index 0000000..78a007e --- /dev/null +++ b/.github/workflows/publish-npm.yaml @@ -0,0 +1,22 @@ +name: Publish to NPM + +on: + pull_request: + types: [closed] + branches: + - main + +jobs: + publish: + if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release-please--') + uses: sendo-labs/reusable-workflows/.github/workflows/npm-publish.yml@npm-publish-workflow-v1.0.0 + with: + bun-version: 'latest' + node-version: '22' + working-directory: '.' + registry-url: 'https://registry.npmjs.org' + skip-tests: true + skip-build: false + access: 'public' + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e37d497 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +name: Auto Release + +on: + push: + branches: + - main # ou master + +jobs: + release: + uses: sendo-labs/reusable-workflows/.github/workflows/release.yml@release-workflow-v1.0.0 + with: + release-type: node + permissions: + contents: write + pull-requests: write \ No newline at end of file From 8dde453e6eec8004b5c542ae019671eb4beabbb4 Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sat, 25 Oct 2025 17:17:17 +0200 Subject: [PATCH 2/2] chore: add release configuration and manifest files for automated versioning --- .release-please-manifest.json | 3 +++ release-please-config.json | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..46b1b67 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.0" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..ade6cbc --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,26 @@ +{ + "release-type": "simple", + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "simple", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "changelog-sections": [ + { "type": "feat", "section": "✨ Features", "hidden": false }, + { "type": "fix", "section": "🐛 Bug Fixes", "hidden": false }, + { "type": "perf", "section": "⚡ Performance Improvements", "hidden": false }, + { "type": "revert", "section": "⏪ Reverts", "hidden": false }, + { "type": "docs", "section": "📚 Documentation", "hidden": false }, + { "type": "style", "section": "💎 Styles", "hidden": true }, + { "type": "chore", "section": "🔧 Miscellaneous", "hidden": false }, + { "type": "refactor", "section": "♻️ Code Refactoring", "hidden": false }, + { "type": "test", "section": "✅ Tests", "hidden": true }, + { "type": "build", "section": "📦 Build System", "hidden": true }, + { "type": "ci", "section": "👷 Continuous Integration", "hidden": true } + ] +} \ No newline at end of file