Skip to content

Commit 4ded28e

Browse files
committed
chore(ci): update semantic version check logic to work on PR branch
1 parent 321ea58 commit 4ded28e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/semver-check.yml renamed to .github/workflows/semantic-check.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
issues: write
11+
712
jobs:
813
semver-check:
914
name: Validate Semantic Version
1015
runs-on: ubuntu-latest
11-
permissions:
12-
contents: read
13-
pull-requests: write
1416

1517
steps:
1618
- name: Checkout
@@ -40,6 +42,13 @@ jobs:
4042
with:
4143
dry_run: true
4244
ci: false
45+
extra_plugins: |
46+
@semantic-release/commit-analyzer
47+
@semantic-release/release-notes-generator
48+
branches: |
49+
[
50+
"${GITHUB_HEAD_REF}"
51+
]
4352
env:
4453
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4554

.releaserc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"branches": [
3-
"main",
4-
"master"
3+
"main"
54
],
65
"plugins": [
76
"@semantic-release/commit-analyzer",

0 commit comments

Comments
 (0)