Skip to content

Commit c030514

Browse files
authored
ci: update workflows to node 24 (#202)
1 parent 0f4b335 commit c030514

File tree

8 files changed

+49
-44
lines changed

8 files changed

+49
-44
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ These are two great articles about it: https://medium.com/outsystems-experts/how
3333

3434
# Development Setup
3535

36-
You need at least [Node.js](http://nodejs.org/) **version 22**.
36+
You need at least [Node.js](http://nodejs.org/) **version 24**.
3737
The local setup contains every example of the main Oruga documentation page.
3838

3939
## Install

.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

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"@eslint/compat": "^2.0.0",
5757
"@oruga-ui/examples": "^0.12.3",
5858
"@oruga-ui/oruga-next": "^0.12.3",
59-
"@tsconfig/node22": "^22.0.5",
59+
"@tsconfig/node24": "^24.0.3",
6060
"@types/node": "^24.10.1",
6161
"@vitejs/plugin-vue": "^6.0.2",
6262
"@vue/eslint-config-prettier": "^10.2.0",

tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": ["@vue/tsconfig/tsconfig.json", "@tsconfig/node22/tsconfig.json"],
2+
"extends": ["@vue/tsconfig/tsconfig.json", "@tsconfig/node24/tsconfig.json"],
33
"compilerOptions": {
44
"composite": true,
55
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",

0 commit comments

Comments
 (0)