Skip to content

Commit

Permalink
feat: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
rpidanny committed Jul 11, 2024
1 parent 1b08689 commit c8ed885
Show file tree
Hide file tree
Showing 10 changed files with 25,603 additions and 13,437 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local_tests
21 changes: 14 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches:
- '*'


jobs:
build:
Expand All @@ -22,7 +22,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm ci
npm run build:dev
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build Dev
run: npm run build:dev

- name: Build Prod
run: npm run build
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
5 changes: 5 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"src/**/*.{ts,js,json,md,html,css,scss}": [
"npm run lint"
]
}
26 changes: 26 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


module.exports = { extends: ['@commitlint/config-conventional'] }
Loading

0 comments on commit c8ed885

Please sign in to comment.