File tree Expand file tree Collapse file tree 4 files changed +41
-36
lines changed
Expand file tree Collapse file tree 4 files changed +41
-36
lines changed Original file line number Diff line number Diff line change 11name : Build Package
22on :
33 push :
4- branches :
5- - main
6- - develop
4+ branches : [main]
75 pull_request :
8- branches :
9- - main
10- - develop
6+ branches : [main]
7+
118jobs :
129 build :
1310 runs-on : ubuntu-latest
1411 steps :
15- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v6
13+
1614 - name : Setup Node
17- uses : actions/setup-node@v4
15+ uses : actions/setup-node@v6
1816 with :
19- node-version : 22 .x
17+ node-version : 24 .x
2018 registry-url : " https://registry.npmjs.org"
2119 cache : " npm"
20+
2221 - name : Install dependencies 📦
2322 run : npm ci
24- - name : Run build lib 🛠️
23+
24+ - name : Run build package 🛠️
2525 run : npm run build
Original file line number Diff line number Diff line change 11name : Commit Lint
22on :
33 push :
4- branches :
5- - main
6- - develop
4+ branches : [main]
75 pull_request :
8- branches :
9- - main
10- - develop
6+ branches : [main]
7+
118jobs :
129 commitlint :
1310 runs-on : ubuntu-latest
1411 steps :
15- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v6
1613 with :
14+ # fetch all history for all branches and tags.
1715 fetch-depth : 0
16+
1817 - name : Setup Node
19- uses : actions/setup-node@v4
18+ uses : actions/setup-node@v6
2019 with :
21- node-version : 22 .x
20+ node-version : 24 .x
2221 registry-url : " https://registry.npmjs.org"
2322 cache : " npm"
23+
2424 - name : Install dependencies 📦
2525 run : npm install @commitlint/cli @commitlint/config-conventional
26+
2627 - name : Run PR title check 💬
2728 if : ${{ github.event_name == 'pull_request' }}
2829 run : echo "${{ github.event.pull_request.title }}" | npx commitlint
30+
2931 - name : Run commit message check 💬
3032 if : ${{ github.event_name != 'pull_request' }}
3133 run : npx commitlint --from HEAD~1 --to HEAD
Original file line number Diff line number Diff line change 11name : Lint Check
22on :
33 push :
4- branches :
5- - main
6- - develop
4+ branches : [main]
75 pull_request :
8- branches :
9- - main
10- - develop
6+ branches : [main]
7+
118jobs :
129 check :
1310 runs-on : ubuntu-latest
1411 steps :
15- - uses : actions/checkout@v4
12+ - uses : actions/checkout@v6
13+
1614 - name : Setup Node
17- uses : actions/setup-node@v4
15+ uses : actions/setup-node@v6
1816 with :
19- node-version : 22 .x
17+ node-version : 24 .x
2018 registry-url : " https://registry.npmjs.org"
2119 cache : " npm"
20+
2221 - name : Install dependencies 📦
2322 run : npm ci
23+
2424 - name : Run lint check 🧐
2525 run : npm run test:lint
Original file line number Diff line number Diff line change 1- name : Node.js Package
1+ name : Publish Release
22on :
33 release :
44 types : [created]
5+
56permissions :
67 id-token : write # Required for OIDC
78 contents : read
9+
810jobs :
9- build :
11+ publish :
1012 runs-on : ubuntu-latest
1113 steps :
12- - uses : actions/checkout@v4
14+ - uses : actions/checkout@v6
15+
1316 - name : Setup Node
14- uses : actions/setup-node@v4
17+ uses : actions/setup-node@v6
1518 with :
16- node-version : 22 .x
19+ node-version : 24 .x
1720 registry-url : " https://registry.npmjs.org"
18- # Ensure npm 11.5.1 or later is installed
19- - name : Update npm
20- run : npm install -g npm@latest
21+
2122 - name : Install dependencies 📦
2223 run : npm ci
24+
2325 - name : Build lib 🛠️
2426 run : npm run build
27+
2528 - name : Publish NPM lib 📋
2629 run : npm publish
You can’t perform that action at this time.
0 commit comments