diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d11de29..1b0b343 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -2,12 +2,6 @@ Closes #PLEASE_TYPE_ISSUE_NUMBER -## Type - -type: <-- Add the type of the PR --> - - - ## Summary Explain the **motivation** for making this change. What existing problem does the pull request solve? diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 9cc9172..72581ad 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -1,8 +1,7 @@ name: Pre-release Tag on: - pull_request: - types: [closed] + push: branches: [main] concurrency: @@ -11,7 +10,6 @@ concurrency: jobs: pre-release: - if: github.event.pull_request.merged == true runs-on: ubuntu-latest name: Pre-Release permissions: @@ -22,26 +20,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.base.ref }} + ref: ${{ github.ref_name }} fetch-depth: 0 - - name: Get PR type from description - id: pr-type - uses: actions/github-script@v7 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const body = context.payload.pull_request.body || ''; - const typeMatch = body.match(/type:\s*(feat|fix|chore|docs|refactor)/i); - - if (!typeMatch) { - core.setOutput('type', 'fix'); - return; - } - - const type = typeMatch[1].toLowerCase(); - core.setOutput('type', type); - - name: Setup Node uses: actions/setup-node@v4 with: @@ -58,8 +39,6 @@ jobs: - name: Run semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_EVENT_NAME: push - GITHUB_REF: refs/heads/${{ github.event.pull_request.base.ref }} run: npx semantic-release - name: Rewrite notes (cumulative, grouped, since last stable)