Skip to content

Commit e977224

Browse files
committed
feat: add bump & CI actions
1 parent 4d9ab4e commit e977224

File tree

4 files changed

+369
-3
lines changed

4 files changed

+369
-3
lines changed

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js environment
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- name: Install dependencies
25+
run: npm ci --no-audit
26+
27+
# Build script also run a type-check to ensure there are no type errors.
28+
- name: Build
29+
run: npm run build

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Release is automatically triggered when a new tag is pushed to the repository,
2+
# this is done using `npm run bumpp`.
3+
#
4+
# This action will use `changelogithub` which generates a changelog using
5+
# conventional commits, inside the GitHub release.
6+
7+
name: Release
8+
9+
permissions:
10+
contents: write
11+
12+
on:
13+
push:
14+
tags:
15+
- "v*"
16+
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-node@v3
26+
with:
27+
node-version: 18.x
28+
29+
- run: npx changelogithub
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)