Skip to content

Commit

Permalink
Merge pull request #1 from fgardt/ci/fix_release
Browse files Browse the repository at this point in the history
ci: fix release action
  • Loading branch information
notnotmelon authored Aug 4, 2024
2 parents 54cd43f + 09f33bc commit 4437fd3
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
node-version: lts/*
- name: Install release dependencies
run: |
npm install semantic-release@^24.0.0 \
@semantic-release/git@^10.0.1 semantic-release-factorio@^1.5.1 \
conventional-changelog-conventionalcommits-factorio@^1.1.0
npm install semantic-release@^24 \
@semantic-release/git@^10 semantic-release-factorio@^1.5.1 \
conventional-changelog-conventionalcommits@^8
- name: Run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FACTORIO_TOKEN: ${{ secrets.FACTORIO_TOKEN }}
FACTORIO_TOKEN: ${{ secrets.FACTORIO_TOKEN }}
43 changes: 36 additions & 7 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@
[
"@semantic-release/commit-analyzer",
{
"config": "conventional-changelog-conventionalcommits-factorio",
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "info", "release": "patch" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "feature", "release": "minor" },
{ "type": "gui", "release": "patch" },
{ "type": "balance", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "performance", "release": "patch" },
{ "type": "compat", "release": "patch" },
{ "type": "balance", "release": "patch" },
{ "type": "compatibility", "release": "patch" },
{ "type": "fix", "release": "patch" },
{ "type": "graphics", "release": "patch" },
{ "type": "sound", "release": "patch" },
{ "type": "gui", "release": "patch" },
{ "type": "info", "release": "patch" },
{ "type": "locale", "release": "patch" },
{ "type": "translate", "release": "patch" },
{ "type": "control", "release": "patch" },
Expand All @@ -27,7 +30,33 @@
[
"@semantic-release/release-notes-generator",
{
"config": "conventional-changelog-conventionalcommits-factorio"
"preset": "conventionalcommits",
"writerOpts": {
"headerPartial": "---------------------------------------------------------------------------------------------------\nVersion: {{version}}\nDate: {{#if date}}{{date}}{{else}}????{{/if}}\n",
"footerPartial": "",
"commitPartial": "{{#if scope}}[{{scope}}] {{/if}}{{~subject}}",
"mainTemplate": "{{> header}}\n{{#each commitGroups}}\n {{title}}:\n{{#each commits}}\n - {{> commit root=@root}}\n{{/each}}\n{{/each}}"
},
"presetConfig": {
"types": [
{ "type": "info", "section": "Info" },
{ "type": "feat", "section": "Features" },
{ "type": "feature", "section": "Features" },
{ "type": "gui", "section": "Gui" },
{ "type": "balance", "section": "Balancing" },
{ "type": "perf", "section": "Optimizations" },
{ "type": "performance", "section": "Optimizations" },
{ "type": "compat", "section": "Compatibility" },
{ "type": "compatibility", "section": "Compatibility" },
{ "type": "fix", "section": "Bugfixes" },
{ "type": "graphics", "section": "Graphics" },
{ "type": "sound", "section": "Sounds" },
{ "type": "locale", "section": "Locale" },
{ "type": "translate", "section": "Translation" },
{ "type": "control", "section": "Control" },
{ "type": "other", "section": "Changes" }
]
}
}
],
"semantic-release-factorio",
Expand All @@ -52,4 +81,4 @@
}
]
]
}
}

0 comments on commit 4437fd3

Please sign in to comment.