ci: test with semantic-release without git

This commit is contained in:
2025-09-20 09:49:08 +02:00
parent c3a7f917a9
commit 0d1ecd1192
3 changed files with 14 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