Skip to content

Commit

Permalink
test: node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 1, 2025
1 parent b879180 commit 14913c7
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest, windows-latest'
version: '16, 18, 20'
version: '16, 18, 20, 22'
23 changes: 23 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Any Commit
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Build
run: npm run prepublishOnly --if-present

- run: npx pkg-pr-new publish
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Test coverage][codecov-image]][codecov-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url]
[![Node.js Version](https://img.shields.io/node/v/onelogger.svg?style=flat)](https://nodejs.org/en/download/)

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

## License

[MIT](LICENSE.txt)

<!-- GITCONTRIBUTOR_START -->
[MIT](LICENSE)

## Contributors

|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|
| :---: |


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`.

<!-- GITCONTRIBUTOR_END -->
[![contributors](https://contrib.rocks/image?repo=node-modules/onelogger&max=240&columns=26)](https://github.com/node-modules/onelogger/graphs/contributors)
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"description": "the only ONE logger",
"dependencies": {},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.2",
"@eggjs/tsconfig": "^1.3.3",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.3",
"git-contributor": "*",
"@types/node": "22",
"egg-bin": "^6.5.2",
"eslint": "^8.49.0",
"eslint-config-egg": "^13.0.0",
"tshy": "^1.1.1",
"tshy": "^3.0.2",
"tshy-after": "^1.0.0",
"typescript": "^5.2.2"
},
Expand All @@ -24,10 +24,9 @@
"test": "npm run test-local",
"test-local": "egg-bin test",
"cov": "egg-bin cov",
"preci": "npm run prepublishOnly",
"preci": "npm run prepublishOnly && attw --pack",
"ci": "npm run lint && npm run cov",
"prepublishOnly": "tshy && tshy-after",
"contributor": "git-contributor"
"prepublishOnly": "tshy && tshy-after"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -69,5 +68,6 @@
}
},
"types": "./dist/commonjs/index.d.ts",
"main": "./dist/commonjs/index.js"
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js"
}

0 comments on commit 14913c7

Please sign in to comment.