Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@

Closes #PLEASE_TYPE_ISSUE_NUMBER

## Type

type: <-- Add the type of the PR -->

<!-- Options: feat | fix | chore | docs | refactor -->

## Summary

Explain the **motivation** for making this change. What existing problem does the pull request solve?
Expand Down
25 changes: 2 additions & 23 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Pre-release Tag

on:
pull_request:
types: [closed]
push:
branches: [main]

concurrency:
Expand All @@ -11,7 +10,6 @@ concurrency:

jobs:
pre-release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
name: Pre-Release
permissions:
Expand All @@ -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:
Expand All @@ -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)
Expand Down
Loading