Skip to content

Commit 2c86e47

Browse files
chore(ci): tag new releases automatically
1 parent 4503667 commit 2c86e47

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: schedule-release.yml
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- '0 13 * * *'
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
tag-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: "24"
21+
22+
- name: Tag new release
23+
run: |
24+
npx --package @semantic-release/git semantic-release
25+
env:
26+
GH_TOKEN: ${{ secrets.MACHINE_USER_TOKEN }}
27+
GIT_AUTHOR_NAME: mittwald-machine[bot]
28+
GIT_AUTHOR_EMAIL: opensource@mittwald.de

release.config.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/** @type {import("semantic-release").GlobalConfig} */
2+
module.exports = {
3+
branches: ["master"],
4+
plugins: [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
[
8+
"@semantic-release/git",
9+
{
10+
message: `chore(release): \${nextRelease.version}\n\n\${nextRelease.notes}`,
11+
},
12+
],
13+
],
14+
};

0 commit comments

Comments
 (0)