Compare commits

..

12 Commits

Author SHA1 Message Date
dcbd133e7f chore(release): 1.0.0 2025-09-20 10:13:51 +02:00
4721128914 chore(release): 1.0.0 2025-09-20 10:12:52 +02:00
be6241f873 chore(release): 1.0.0 2025-09-20 10:12:17 +02:00
50b0c9ad6e chore(release): 1.0.0 2025-09-20 10:12:09 +02:00
a661e15443 chore(release): 0.0.2 2025-09-20 10:12:01 +02:00
be7cb63d99 chore(release): 0.0.2 2025-09-20 10:09:38 +02:00
8ffaa90594 ci: test with semantic-release without git 2025-09-20 10:03:50 +02:00
c3a7f917a9 ci: try with commit-and-tag-version v3 2025-09-20 00:04:31 +02:00
de15869ceb ci: try with commit-and-tag-version v2 2025-09-20 00:00:54 +02:00
159518b08c ci: try with commit-and-tag-version 2025-09-19 23:35:07 +02:00
semantic-release-bot
8ab72fcdeb chore(release): 1.0.0 [skip ci]
# 1.0.0 (2025-09-19)

### Bug Fixes

* **prometheus-exporter:** fix metric naming to be consistent with prometheus reqs ([431b73e](431b73ee2d))

### Features

* expose production/consumption metrics as metrics.prom ([8a91112](8a911129f6))
* **prometheus-exporter:** add metrics-pole for power metrics ([25026b2](25026b2e73))
2025-09-19 21:12:45 +00:00
f962a5a85d ci: semantic-release 2025-09-19 23:11:46 +02:00
5 changed files with 28 additions and 48 deletions

View File

@@ -2,6 +2,9 @@ name: Release
on: on:
workflow_dispatch: workflow_dispatch:
permissions:
contents: read # for checkout
jobs: jobs:
release: release:
name: Release name: Release
@@ -13,36 +16,5 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Prepare git
run: |
git config --global user.email "gitea@bjornp.com"
git config --global user.name "gitea-actions"
- name: Determine release version and changelog - name: Determine release version and changelog
run: npx commit-and-tag-version run: npx semantic-release
- name: Build release
working-directory: src
run: |
VERSION=$(jq '.version' info.json | xargs echo -n)
zip -r ../prometheus-exporter_$VERSION.zip .
- name: Push changelog and tag
run: git push --follow-tags
- name: Get latest tag and changelog fragment
id: tag
run: |
echo tag="$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
echo "changelog<<EOF" >> $GITHUB_OUTPUT
awk '/^## / { if (version_found) exit; version_found=1 } version_found { print }' CHANGELOG.md | sed '1d' >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
files: prometheus-exporter_*.zip
body: ${{ steps.tag.outputs.changelog }}
name: ${{ steps.tag.outputs.tag }}
tag_name: ${{ steps.tag.outputs.tag }}
md5sum: true

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,14 +0,0 @@
{
"packageFiles": [
{
"filename": "src/info.json",
"type": "json"
}
],
"bumpFiles": [
{
"filename": "src/info.json",
"type": "json"
}
]
}

View File

@@ -2,4 +2,15 @@
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines. All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
## 0.0.2 (2025-10-07) ## 1.0.0 (2025-09-20)
### Features
* expose production/consumption metrics as metrics.prom ([8a91112](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/8a911129f68eef90db974abcb8be9b059e5567c3))
* **prometheus-exporter:** add metrics-pole for power metrics ([25026b2](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/25026b2e732cb8a1074e8d8f73edf576565f3b9e))
### Bug Fixes
* **prometheus-exporter:** fix metric naming to be consistent with prometheus reqs ([431b73e](https://git.bjornp.com/bjorn/factorio-prometheus-exporter/commit/431b73ee2dd7b3d78076a4eda6af813072f18678))

View File

@@ -1,6 +1,6 @@
{ {
"name": "prometheus-exporter", "name": "prometheus-exporter",
"version": "0.0.2", "version": "1.0.0",
"title": "Prometheus Exporter for Factorio", "title": "Prometheus Exporter for Factorio",
"author": "Bjorn Pijnacker", "author": "Bjorn Pijnacker",
"factorio_version": "2.0", "factorio_version": "2.0",