|
| 1 | +on: |
| 2 | + push: |
| 3 | + branches: |
| 4 | + - main |
| 5 | +name: release-please |
| 6 | +jobs: |
| 7 | + release-please: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + permissions: |
| 10 | + contents: write |
| 11 | + pull-requests: write |
| 12 | + id-token: write |
| 13 | + steps: |
| 14 | + - uses: google-github-actions/release-please-action@v3 |
| 15 | + id: release |
| 16 | + with: |
| 17 | + release-type: node |
| 18 | + package-name: 'eslint-plugin-eslint-plugin' |
| 19 | + pull-request-title-pattern: 'chore: release${component} ${version}' |
| 20 | + changelog-types: > |
| 21 | + [ |
| 22 | + { "type": "feat", "section": "Features", "hidden": false }, |
| 23 | + { "type": "fix", "section": "Bug Fixes", "hidden": false }, |
| 24 | + { "type": "docs", "section": "Documentation", "hidden": false }, |
| 25 | + { "type": "build", "section": "Build Related", "hidden": false }, |
| 26 | + { "type": "chore", "section": "Chores", "hidden": false }, |
| 27 | + { "type": "perf", "section": "Chores", "hidden": false }, |
| 28 | + { "type": "ci", "section": "Chores", "hidden": false }, |
| 29 | + { "type": "refactor", "section": "Chores", "hidden": false }, |
| 30 | + { "type": "test", "section": "Chores", "hidden": false } |
| 31 | + ] |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + if: ${{ steps.release.outputs.release_created }} |
| 34 | + - uses: actions/setup-node@v4 |
| 35 | + with: |
| 36 | + node-version: lts/* |
| 37 | + registry-url: https://registry.npmjs.org |
| 38 | + if: ${{ steps.release.outputs.release_created }} |
| 39 | + - run: | |
| 40 | + npm install |
| 41 | + npm publish --provenance |
| 42 | + env: |
| 43 | + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 44 | + if: ${{ steps.release.outputs.release_created }} |
0 commit comments