Skip to content

Commit

Permalink
feat: configure cicd and semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
rchezrutt88 committed Feb 6, 2023
1 parent 6fd7348 commit ce5e072
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 131 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: npm
- name: install packages
run: npm ci
- name: test
run: npm test
- name: build and zip lambdas
run: npm run build
- name: semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: test
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: npm
- name: install packages
run: npm ci
- name: test
run: npm test
19 changes: 19 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/*"
}
]
}
]
]
}
Loading

0 comments on commit ce5e072

Please sign in to comment.