File tree Expand file tree Collapse file tree 4 files changed +23
-9
lines changed
Expand file tree Collapse file tree 4 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 11module . 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} ;
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff 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
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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments