ci: test with semantic-release without git
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
name: Release
|
name: Release
|
||||||
on: [workflow_dispatch]
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # for checkout
|
contents: read # for checkout
|
||||||
@@ -15,16 +16,5 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Determine release version and changelog
|
||||||
uses: actions/setup-node@v4
|
run: npx semantic-release
|
||||||
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
|
|
||||||
|
|||||||
10
.releaserc.json
Normal file
10
.releaserc.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"branches": [
|
||||||
|
"main",
|
||||||
|
"beta"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"packageFiles": [
|
|
||||||
{
|
|
||||||
"filename": "src/info.json",
|
|
||||||
"type": "json"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user