Skip to content

Commit 82e131f

Browse files
Arunkumarcsarunt2s
andauthored
V1.3.0 (#4)
* update * update * updated packages * presetup * feat: adding ci/cd * test fail * test fail * feat: add new rule engine hook --------- Co-authored-by: arunt2s <[email protected]>
1 parent 92ca6f8 commit 82e131f

File tree

12 files changed

+8303
-1954
lines changed

12 files changed

+8303
-1954
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # Required for semantic-release
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
registry-url: 'https://registry.npmjs.org/'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Test and badges
29+
run: npm run test:badges
30+
31+
- name: Run semantic-release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: npx semantic-release

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run test:badges

.npmignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
src/
22
tests/
33
*.ts
4-
*.map
4+
*.map
5+
coverage/
6+
.husky/
7+
badges/
8+
node_modules/

.releaserc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
"@semantic-release/changelog",
9+
"@semantic-release/npm",
10+
"@semantic-release/github",
11+
[
12+
"@semantic-release/git",
13+
{
14+
"assets": [
15+
"CHANGELOG.md",
16+
"package.json",
17+
"package-lock.json"
18+
],
19+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
20+
}
21+
]
22+
]
23+
}

badges/badge-branches.svg

Lines changed: 1 addition & 0 deletions
Loading

badges/badge-functions.svg

Lines changed: 1 addition & 0 deletions
Loading

badges/badge-lines.svg

Lines changed: 1 addition & 0 deletions
Loading

badges/badge-statements.svg

Lines changed: 1 addition & 0 deletions
Loading

jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/** @type {import('ts-jest').JestConfigWithTsJest} **/
22
module.exports = {
3+
collectCoverage: true,
34
testEnvironment: "node",
45
transform: {
56
"^.+.tsx?$": ["ts-jest", {}],
67
},
78
testMatch: ["**/*.test.ts", "**/*.spec.ts"],
9+
coverageReporters: ["lcov", "json-summary"],
810
};

0 commit comments

Comments
 (0)