diff --git a/.github/workflows/AutoReleaseFromPR.yml b/.github/workflows/AutoReleaseFromPR.yml new file mode 100644 index 000000000..6059be51c --- /dev/null +++ b/.github/workflows/AutoReleaseFromPR.yml @@ -0,0 +1,21 @@ +on: + pull_request: + types: + - closed + +name: Release + +jobs: + release-please: + # in fact im not sure if the if-code works ? + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - uses: GoogleCloudPlatform/release-please-action@v3 + id: release + with: + # how to use ? PR like 'feat:Economic change' or 'fix:bugs about Economic fixed' and it will automatically release! + token: ${{ secrets.RELEASE_TOKEN }} + release-type: node + package-name: standard-version + changelog-types: '[{"type": "types", "section":"Types", "hidden": false},{"type": "revert", "section":"Reverts", "hidden": false},{"type": "feat", "section": "Features", "hidden": false},{"type": "fix", "section": "Bug Fixes", "hidden": false},{"type": "improvement", "section": "Feature Improvements", "hidden": false},{"type": "docs", "section":"Docs", "hidden": false},{"type": "style", "section":"Styling", "hidden": false},{"type": "refactor", "section":"Code Refactoring", "hidden": false},{"type": "perf", "section":"Performance Improvements", "hidden": false},{"type": "test", "section":"Tests", "hidden": false},{"type": "build", "section":"Build System", "hidden": false},{"type": "ci", "section":"CI", "hidden":false}]'