Skip to content

Commit 14913c7

Browse files
committed
test: node 22
1 parent b879180 commit 14913c7

4 files changed

Lines changed: 34 additions & 18 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1414
with:
1515
os: 'ubuntu-latest, macos-latest, windows-latest'
16-
version: '16, 18, 20'
16+
version: '16, 18, 20, 22'

.github/workflows/pkg.pr.new.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v4
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
17+
- name: Install dependencies
18+
run: npm install
19+
20+
- name: Build
21+
run: npm run prepublishOnly --if-present
22+
23+
- run: npx pkg-pr-new publish

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Test coverage][codecov-image]][codecov-url]
66
[![Known Vulnerabilities][snyk-image]][snyk-url]
77
[![npm download][download-image]][download-url]
8+
[![Node.js Version](https://img.shields.io/node/v/onelogger.svg?style=flat)](https://nodejs.org/en/download/)
89

910
[npm-image]: https://img.shields.io/npm/v/onelogger.svg?style=flat-square
1011
[npm-url]: https://npmjs.org/package/onelogger
@@ -66,16 +67,8 @@ getCustomLogger('myBizLogger');
6667

6768
## License
6869

69-
[MIT](LICENSE.txt)
70-
71-
<!-- GITCONTRIBUTOR_START -->
70+
[MIT](LICENSE)
7271

7372
## Contributors
7473

75-
|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|
76-
| :---: |
77-
78-
79-
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sat Jan 20 2024 22:39:14 GMT+0800`.
80-
81-
<!-- GITCONTRIBUTOR_END -->
74+
[![contributors](https://contrib.rocks/image?repo=node-modules/onelogger&max=240&columns=26)](https://github.com/node-modules/onelogger/graphs/contributors)

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"description": "the only ONE logger",
55
"dependencies": {},
66
"devDependencies": {
7+
"@arethetypeswrong/cli": "^0.17.2",
78
"@eggjs/tsconfig": "^1.3.3",
89
"@types/mocha": "^10.0.1",
9-
"@types/node": "^20.6.3",
10-
"git-contributor": "*",
10+
"@types/node": "22",
1111
"egg-bin": "^6.5.2",
1212
"eslint": "^8.49.0",
1313
"eslint-config-egg": "^13.0.0",
14-
"tshy": "^1.1.1",
14+
"tshy": "^3.0.2",
1515
"tshy-after": "^1.0.0",
1616
"typescript": "^5.2.2"
1717
},
@@ -24,10 +24,9 @@
2424
"test": "npm run test-local",
2525
"test-local": "egg-bin test",
2626
"cov": "egg-bin cov",
27-
"preci": "npm run prepublishOnly",
27+
"preci": "npm run prepublishOnly && attw --pack",
2828
"ci": "npm run lint && npm run cov",
29-
"prepublishOnly": "tshy && tshy-after",
30-
"contributor": "git-contributor"
29+
"prepublishOnly": "tshy && tshy-after"
3130
},
3231
"repository": {
3332
"type": "git",
@@ -69,5 +68,6 @@
6968
}
7069
},
7170
"types": "./dist/commonjs/index.d.ts",
72-
"main": "./dist/commonjs/index.js"
71+
"main": "./dist/commonjs/index.js",
72+
"module": "./dist/esm/index.js"
7373
}

0 commit comments

Comments
 (0)