From d9f8086c11f4604ff5b671009d48a69f7a979ee4 Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:12:23 +0200 Subject: [PATCH 1/6] feat(workflows): add initial configuration files for release management and NPM publishing - Created .release-please-manifest.json to define the release version. - Added release-please-config.json for release type and changelog configuration. - Implemented GitHub Actions workflows for automated NPM publishing and release management. --- .github/workflows/publish-npm.yaml | 19 +++++++++++++++++++ .github/workflows/release.yml | 13 +++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 26 ++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 .github/workflows/publish-npm.yaml create mode 100644 .github/workflows/release.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml new file mode 100644 index 0000000..93c333a --- /dev/null +++ b/.github/workflows/publish-npm.yaml @@ -0,0 +1,19 @@ +name: Publish to NPM + +on: + release: + types: [published] + +jobs: + publish: + uses: sendo/reusable-workflows/.github/workflows/npm-publish.yml@feat/wip + with: + bun-version: 'latest' + node-version: '22' + working-directory: '.' + registry-url: 'https://registry.npmjs.org' + skip-tests: false + 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..95fccf2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +name: Auto Release + +on: + push: + branches: + - main # ou master + +jobs: + release: + uses: sendo/reusable-workflows/.github/workflows/release.yml@feat/wip + permissions: + contents: write + pull-requests: write \ No newline at end of file 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 From 9d9b0344f6dd76a6cd55eb7690f2ded22c45a28a Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:15:27 +0200 Subject: [PATCH 2/6] chore(workflows): update release workflow configuration - Added workflow_dispatch trigger to enable manual execution of the release workflow. - Specified release-type as 'node' for the reusable workflow. --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95fccf2..e2f0989 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,10 +4,15 @@ on: push: branches: - main # ou master + workflow_dispatch: {} + + jobs: release: uses: sendo/reusable-workflows/.github/workflows/release.yml@feat/wip + with: + release-type: node permissions: contents: write pull-requests: write \ No newline at end of file From 57793e7bfef19d9bec9e74cfe5fcc70a310413d3 Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:16:16 +0200 Subject: [PATCH 3/6] chore(workflows): modify release workflow triggers - Added 'feat/workflows' branch to the push trigger for the release workflow. - Removed the workflow_dispatch trigger for manual execution. --- .github/workflows/release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2f0989..7091616 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,10 +3,8 @@ name: Auto Release on: push: branches: - - main # ou master - workflow_dispatch: {} - - + - main # ou master + - feat/workflows jobs: release: From 446d4a308cdfb867a3184fc5a518df075aa65d96 Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:28:39 +0200 Subject: [PATCH 4/6] chore(workflows): update reusable workflow references to version 1 - Changed the reusable workflow references in both publish-npm.yaml and release.yml from 'feat/wip' to 'v1' for consistency and stability. --- .github/workflows/publish-npm.yaml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index 93c333a..0ab51cf 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -6,7 +6,7 @@ on: jobs: publish: - uses: sendo/reusable-workflows/.github/workflows/npm-publish.yml@feat/wip + uses: sendo/reusable-workflows/.github/workflows/npm-publish.yml@v1 with: bun-version: 'latest' node-version: '22' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7091616..ef3371b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: release: - uses: sendo/reusable-workflows/.github/workflows/release.yml@feat/wip + uses: sendo/reusable-workflows/.github/workflows/release.yml@v1 with: release-type: node permissions: From 8fae4b19d7363ea5137939d81b440f085ef470fe Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:33:01 +0200 Subject: [PATCH 5/6] chore(workflows): update reusable workflow references to use sendo-labs - Updated the references in publish-npm.yaml and release.yml to point to the 'sendo-labs' organization for consistency in workflow usage. --- .github/workflows/publish-npm.yaml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index 0ab51cf..7adba39 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -6,7 +6,7 @@ on: jobs: publish: - uses: sendo/reusable-workflows/.github/workflows/npm-publish.yml@v1 + uses: sendo-labs/reusable-workflows/.github/workflows/npm-publish.yml@v1 with: bun-version: 'latest' node-version: '22' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef3371b..52a5f32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: release: - uses: sendo/reusable-workflows/.github/workflows/release.yml@v1 + uses: sendo-labs/reusable-workflows/.github/workflows/release.yml@v1 with: release-type: node permissions: From cf4cc35e79c73e289dcab6fc645edfcf5eff3acb Mon Sep 17 00:00:00 2001 From: Maxime Nony Date: Sun, 19 Oct 2025 14:34:04 +0200 Subject: [PATCH 6/6] chore(workflows): update reusable workflow references to version 1.0.0 - Updated the references in publish-npm.yaml and release.yml to use version 1.0.0 for improved stability and consistency. --- .github/workflows/publish-npm.yaml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index 7adba39..7222e1a 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -6,7 +6,7 @@ on: jobs: publish: - uses: sendo-labs/reusable-workflows/.github/workflows/npm-publish.yml@v1 + uses: sendo-labs/reusable-workflows/.github/workflows/npm-publish.yml@v1.0.0 with: bun-version: 'latest' node-version: '22' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52a5f32..f0bb16e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: release: - uses: sendo-labs/reusable-workflows/.github/workflows/release.yml@v1 + uses: sendo-labs/reusable-workflows/.github/workflows/release.yml@v1.0.0 with: release-type: node permissions: