Skip to content

Commit 0dbfdf1

Browse files
committed
ci(github): add release script in GitHub Actions
1 parent 3dfe480 commit 0dbfdf1

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/release.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Build
27+
run: npm run build
28+
29+
- name: Release script
30+
run: npx semantic-release
31+
env:
32+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

release.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import config from '@kubosho/configs/semantic_release/index.mjs';
2+
3+
export default {
4+
...config,
5+
};

0 commit comments

Comments
 (0)