Skip to content

Commit 4df18be

Browse files
committed
feat: semantic release test
1 parent d572b08 commit 4df18be

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

‎.github/workflows/pre-release.yml‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020

21-
- name: Get PR type from description
22-
id: pr-type
23-
uses: actions/github-script@v7
24-
with:
25-
github-token: ${{ secrets.GITHUB_TOKEN }}
26-
script: |
27-
const body = context.payload.pull_request.body || '';
28-
const typeMatch = body.match(/type:\s*(feat|fix|chore|docs|refactor)/i);
21+
# - name: Get PR type from description
22+
# id: pr-type
23+
# uses: actions/github-script@v7
24+
# with:
25+
# github-token: ${{ secrets.GITHUB_TOKEN }}
26+
# script: |
27+
# const body = context.payload.pull_request.body || '';
28+
# const typeMatch = body.match(/type:\s*(feat|fix|chore|docs|refactor)/i);
2929

30-
if (!typeMatch) {
31-
core.setOutput('type', 'fix');
32-
return;
33-
}
30+
# if (!typeMatch) {
31+
# core.setOutput('type', 'fix');
32+
# return;
33+
# }
3434

35-
const type = typeMatch[1].toLowerCase();
36-
core.setOutput('type', type);
35+
# const type = typeMatch[1].toLowerCase();
36+
# core.setOutput('type', type);
3737

3838
- name: Setup Node
3939
uses: actions/setup-node@v4
@@ -48,14 +48,14 @@ jobs:
4848
@semantic-release/release-notes-generator \
4949
@semantic-release/github
5050
51-
- name: Create conventional commit
52-
env:
53-
COMMIT_TYPE: ${{ steps.pr-type.outputs.type }}
54-
run: |
55-
git config user.email "ci@github.com"
56-
git config user.name "GitHub CI"
57-
ORIGINAL_MSG=$(git log -1 --pretty=%s)
58-
git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}"
51+
# - name: Create conventional commit
52+
# env:
53+
# COMMIT_TYPE: ${{ steps.pr-type.outputs.type }}
54+
# run: |
55+
# git config user.email "ci@github.com"
56+
# git config user.name "GitHub CI"
57+
# ORIGINAL_MSG=$(git log -1 --pretty=%s)
58+
# git commit --allow-empty -m "${COMMIT_TYPE}: ${ORIGINAL_MSG}"
5959

6060
- name: Run semantic-release
6161
env:

0 commit comments

Comments
 (0)