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 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