Skip to content

Commit 8e61d03

Browse files
Arunkumarcsarunt2s
andauthored
V1.3.1 (#7)
* fix(package): correct repository URL * fix: github flow fix * fix: updated * semantic-release proper setup * fix: rules * commitizen * fix(updated commitizen): commitizen commitizen * fix(commiter): semantic-release semantic-release * update tokens --------- Co-authored-by: arunt2s <[email protected]>
1 parent c4bc8d4 commit 8e61d03

File tree

4 files changed

+1118
-38
lines changed

4 files changed

+1118
-38
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,60 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- "*"
710

811
jobs:
9-
release:
12+
test-and-build:
1013
permissions:
1114
contents: write
1215
pull-requests: write
1316
issues: write
1417
packages: write
1518
runs-on: ubuntu-latest
19+
20+
strategy:
21+
matrix:
22+
node-version: [20.x, 21.x, 22.x]
23+
1624
steps:
1725
- uses: actions/checkout@v4
1826
with:
1927
fetch-depth: 0 # Required for semantic-release
2028

21-
- name: Use Node.js
29+
- name: Use Node.js {{ matrix.node-version }}
2230
uses: actions/setup-node@v4
2331
with:
24-
node-version: 20
32+
node-version: ${{ matrix.node-version }}
2533
registry-url: "https://registry.npmjs.org/"
2634

27-
- name: Install dependencies
28-
run: npm ci
35+
- run: npm ci
36+
- run: npm run build
37+
- run: npm run test:badges
2938

30-
- name: Build
31-
run: npm run build
39+
publish:
40+
needs: [test-and-build]
41+
runs-on: ubuntu-latest
42+
43+
if: github.ref == 'refs/heads/main'
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 0 # Required for semantic-release
3248

33-
- name: Test and badges
34-
run: npm run test:badges
49+
- name: Use Node.js {{ matrix.node-version }}
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: ${{ matrix.node-version }}
53+
registry-url: "https://registry.npmjs.org/"
3554

36-
- name: Run semantic-release
55+
- run: npm ci
56+
- run: npm run build
57+
- run: npm run test:badges
58+
- run: npx semantic-release
59+
- run: npm run semantic-release
3760
env:
3861
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3962
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
run: npx semantic-release
63+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)