Skip to content

Commit ce5e072

Browse files
committed
feat: configure cicd and semantic versioning
1 parent 6fd7348 commit ce5e072

File tree

5 files changed

+187
-131
lines changed

5 files changed

+187
-131
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
release:
8+
name: release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: '18.x'
15+
cache: npm
16+
- name: install packages
17+
run: npm ci
18+
- name: test
19+
run: npm test
20+
- name: build and zip lambdas
21+
run: npm run build
22+
- name: semantic release
23+
run: npx semantic-release
24+
env:
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '18.x'
18+
cache: npm
19+
- name: install packages
20+
run: npm ci
21+
- name: test
22+
run: npm test

.releaserc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"branches": [
3+
"master"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
[
9+
"@semantic-release/github",
10+
{
11+
"assets": [
12+
{
13+
"path": "dist/*"
14+
}
15+
]
16+
}
17+
]
18+
]
19+
}

0 commit comments

Comments
 (0)