|
| 1 | +--- |
| 2 | + |
| 3 | +# https://github.com/google-github-actions/release-please-action#release-types-supported |
| 4 | + |
| 5 | +on: # yamllint disable-line rule:truthy |
| 6 | + workflow_call: |
| 7 | + inputs: |
| 8 | + os: |
| 9 | + description: The operating system to run the workflow on |
| 10 | + required: true |
| 11 | + type: string |
| 12 | + default: ubuntu-latest |
| 13 | + branch: |
| 14 | + description: The branch to use when creating the release |
| 15 | + required: true |
| 16 | + type: string |
| 17 | + default: master |
| 18 | + package-name: |
| 19 | + description: The name of the package to release |
| 20 | + required: true |
| 21 | + type: string |
| 22 | + token: |
| 23 | + description: The GitHub token to use when creating the release |
| 24 | + required: true |
| 25 | + type: string |
| 26 | + |
| 27 | +name: 📦 Create release |
| 28 | + |
| 29 | +jobs: |
| 30 | + release: |
| 31 | + runs-on: ${{ inputs.os }} |
| 32 | + steps: |
| 33 | + - name: 🎉 Create release |
| 34 | + uses: google-github-actions/release-please-action@v3 |
| 35 | + id: release |
| 36 | + with: |
| 37 | + token: ${{ inputs.token }} |
| 38 | + release-type: node |
| 39 | + package-name: ${{ inputs.package-name }} |
| 40 | + default-branch: ${{ inputs.branch }} |
| 41 | + changelog-types: | |
| 42 | + [ |
| 43 | + { "type": "feat", "section": "Features", "hidden": false }, |
| 44 | + { "type": "fix", "section": "Bug Fixes", "hidden": false }, |
| 45 | + { "type": "perf", "section": "Performance Improvements", "hidden": false }, |
| 46 | + { "type": "docs", "section": "Documentation", "hidden": false }, |
| 47 | + { "type": "chore", "section": "Miscellaneous", "hidden": false }, |
| 48 | + { "type": "style", "section": "Styles", "hidden": true }, |
| 49 | + { "type": "revert", "section": "Reverts", "hidden": true }, |
| 50 | + { "type": "deps", "section": "Dependencies", "hidden": true }, |
| 51 | + { "type": "refactor", "section": "Code Refactoring", "hidden": true }, |
| 52 | + { "type": "test", "section": "Tests", "hidden": true }, |
| 53 | + { "type": "build", "section": "Build System", "hidden": true }, |
| 54 | + { "type": "ci", "section": "Continuous Integration", "hidden": true } |
| 55 | + ] |
| 56 | +
|
| 57 | +... |
0 commit comments