ci: test with semantic-release without git

This commit is contained in:
2025-09-20 09:49:08 +02:00
parent c3a7f917a9
commit 8ffaa90594
3 changed files with 15 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
name: Release
on: [workflow_dispatch]
on:
workflow_dispatch:
permissions:
contents: read # for checkout
@@ -15,16 +16,5 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Setup git
run: 'git config --global user.name "CI Bot" && git config --global user.email "ci@bjornp.com"'
- name: Run commit and tag
run: npx commit-and-tag-version
- name: Publishing release
run: git remote set-url origin https://bjorn:$GITEA_TOKEN@git.bjornp.com/bjorn/factorio-prometheus-exporter.git \&& git push --follow-tags origin main
- name: Determine release version and changelog
run: npx semantic-release

11
.releaserc.json Normal file
View File

@@ -0,0 +1,11 @@
{
"branches": [
"main",
"beta"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator"
],
"publish": false
}

View File

@@ -1,8 +0,0 @@
{
"packageFiles": [
{
"filename": "src/info.json",
"type": "json"
}
]
}