Skip to content

Commit 0e9708a

Browse files
committed
ci: use semantic-release
1 parent 3ce2f8b commit 0e9708a

File tree

2 files changed

+42
-7
lines changed

2 files changed

+42
-7
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
name: Release
2-
32
on:
43
push:
5-
branches: [main]
4+
branches:
5+
- main # or main
6+
workflow_dispatch: # Add this line to enable manual triggering
7+
8+
concurrency:
9+
group: release
10+
cancel-in-progress: false
611

712
permissions:
813
contents: write
9-
pull-requests: write
1014

1115
jobs:
12-
release-please:
16+
release:
17+
name: Release
1318
runs-on: ubuntu-latest
1419
steps:
15-
- uses: googleapis/release-please-action@v4
20+
- name: Checkout
21+
uses: actions/checkout@v5
1622
with:
17-
release-type: php
18-
package-name: export-response
23+
fetch-depth: 0
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
run: |
28+
npx --yes \
29+
-p semantic-release \
30+
-p @semantic-release/changelog \
31+
-p @semantic-release/git \
32+
semantic-release

.releaserc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
[
7+
"@semantic-release/changelog",
8+
{
9+
"changelogFile": "CHANGELOG.md"
10+
}
11+
],
12+
"@semantic-release/github",
13+
[
14+
"@semantic-release/git",
15+
{
16+
"assets": ["CHANGELOG.md"],
17+
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
18+
}
19+
]
20+
]
21+
}

0 commit comments

Comments
 (0)