Skip to content

Commit 0263b4a

Browse files
committed
chore: Add GitHub action to handle release
1 parent 7048469 commit 0263b4a

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
permissions: write-all
4+
5+
on:
6+
push:
7+
branches:
8+
- trunk
9+
10+
jobs:
11+
release:
12+
name: release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: lts/*
21+
- name: Install release dependencies
22+
run: |
23+
npm install semantic-release@^24 \
24+
@semantic-release/git@^10 semantic-release-factorio@^1.5.1 \
25+
conventional-changelog-conventionalcommits@^8
26+
- name: Run semantic-release
27+
run: npx semantic-release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
FACTORIO_TOKEN: ${{ secrets.FACTORIO_TOKEN }}

.releaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"branches": [
3-
"main"
3+
"trunk"
44
],
55
"plugins": [
66
[

0 commit comments

Comments
 (0)