Skip to content

Commit 068d521

Browse files
authored
Update to use node 24 (#26)
* Update to use node 24 * Fix build option * Update dist * Fix build config * Update dist
1 parent 1455d80 commit 068d521

File tree

12 files changed

+21734
-5097
lines changed

12 files changed

+21734
-5097
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ on:
77
pull_request:
88

99
jobs:
10-
rdflint:
10+
setup-rdflint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-java@v4
13+
- uses: actions/checkout@v6
14+
- uses: actions/setup-java@v5
1515
with:
1616
distribution: temurin
17-
java-version: 17
17+
java-version: 21
1818
- uses: ./
1919
- run: rdflint -v
2020

21-
build:
21+
check-build:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
25-
- uses: actions/setup-node@v4
26-
with:
27-
node-version: 20
28-
- run: npm ci
29-
- run: npm run build
30-
- run: npm run format-check
24+
- uses: actions/checkout@v6
25+
- uses: jdx/mise-action@v3
26+
- run: pnpm install --frozen-lockfile
27+
- run: pnpm run format-check
28+
- run: pnpm run type-check
29+
- run: pnpm run build
30+
- run: git diff --quiet -- dist/index.js

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
dist
1+
/dist/
2+
pnpm-lock.yaml

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"cSpell.words": ["esbuild", "imas", "oxfmt", "rdflint", "temurin"]
45
}

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ GitHub Action to setup [rdflint](https://github.com/imas/rdflint)
55
## Usage
66

77
```yml
8-
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-java@v4
9+
- uses: actions/checkout@v6
10+
- uses: actions/setup-java@v5
1211
with:
1312
distribution: temurin
14-
java-version: 17
15-
- uses: imas/setup-rdflint@v3
13+
java-version: 21
14+
- uses: imas/setup-rdflint@v4
15+
with:
16+
# The version of rdflint to be installed
17+
# Specify the exact version or `latest`
18+
# Default: latest
19+
rdflint-version: latest
1620
- run: rdflint -config rdflint-config.yml
1721
```
1822
19-
## Inputs
20-
21-
- `rdflint-version`: Optional. The version of rdflint to be installed. Example: `0.1.2`. Defaults to `latest`.
22-
2323
## License
2424
2525
MIT License

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: 'Setup rdflint'
2-
description: 'Setup rdflint and add it to the PATH'
1+
name: Setup rdflint
2+
description: Setup rdflint and add it to the PATH
33
inputs:
44
rdflint-version:
5-
description: 'The version of rdflint to be installed'
5+
description: The version of rdflint to be installed
66
required: false
7-
default: 'latest'
7+
default: latest
88
runs:
9-
using: 'node20'
10-
main: 'dist/index.js'
9+
using: node24
10+
main: dist/index.js

0 commit comments

Comments
 (0)