Skip to content

Commit d09ab44

Browse files
committed
chore(workflows): upgrade node and actions version
1 parent f0d650f commit d09ab44

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

.eslintrc.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module.exports = {
2-
extends: ["eslint:recommended", "plugin:prettier/recommended"],
2+
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
33
env: { es6: true, node: true },
4-
parserOptions: { ecmaVersion: 8 },
4+
parserOptions: {
5+
ecmaVersion: 8,
6+
sourceType: 'module',
7+
},
58
};

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v5
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-node@v2
15+
- uses: actions/setup-node@v5
1616
with:
17-
node-version: '14'
17+
node-version: '20'
1818
registry-url: https://registry.npmjs.org/
1919
- run: npm i -g pnpm @antfu/ni
2020
- run: nci
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.11'
24+
- name: Install clang-format and ruff from pypi
25+
run: pip install clang-format ruff
2126
- run: nr test --if-present
2227
- run: npm publish --access public
2328
env:

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [14.x, 16.x]
18+
node-version: [20.x, 22.x]
1919
os: [ubuntu-latest, macos-latest]
2020
fail-fast: false
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v5
2424

2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v1
26+
uses: actions/setup-node@v5
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929

@@ -36,5 +36,10 @@ jobs:
3636
- name: Lint
3737
run: nr lint --if-present
3838

39+
- uses: actions/setup-python@v5
40+
with:
41+
python-version: '3.11'
42+
- name: Install clang-format and ruff from pypi
43+
run: pip install clang-format ruff
3944
- name: Test
4045
run: nr test --if-present

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "ava",
8-
"release": "zx scripts/release.mjs"
8+
"release": "zx scripts/release.mjs",
9+
"lint": "eslint ."
910
},
1011
"repository": {
1112
"type": "git",

0 commit comments

Comments
 (0)