Skip to content

Commit 03dec90

Browse files
committed
ci: update workflows to node 24
1 parent 0f4b335 commit 03dec90

File tree

4 files changed

+41
-36
lines changed

4 files changed

+41
-36
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
name: Build Package
22
on:
33
push:
4-
branches:
5-
- main
6-
- develop
4+
branches: [main]
75
pull_request:
8-
branches:
9-
- main
10-
- develop
6+
branches: [main]
7+
118
jobs:
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

.github/workflows/commit-lint.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
11
name: Commit Lint
22
on:
33
push:
4-
branches:
5-
- main
6-
- develop
4+
branches: [main]
75
pull_request:
8-
branches:
9-
- main
10-
- develop
6+
branches: [main]
7+
118
jobs:
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

.github/workflows/lint-check.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
name: Lint Check
22
on:
33
push:
4-
branches:
5-
- main
6-
- develop
4+
branches: [main]
75
pull_request:
8-
branches:
9-
- main
10-
- develop
6+
branches: [main]
7+
118
jobs:
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

.github/workflows/publish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
name: Node.js Package
1+
name: Publish Release
22
on:
33
release:
44
types: [created]
5+
56
permissions:
67
id-token: write # Required for OIDC
78
contents: read
9+
810
jobs:
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

0 commit comments

Comments
 (0)