Skip to content

Commit bca9091

Browse files
committed
fix(ci): modernize CI
1 parent 2626fbd commit bca9091

File tree

5 files changed

+742
-1063
lines changed

5 files changed

+742
-1063
lines changed

.github/workflows/nodejs.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v1
16-
- name: Use Node.js 18
17-
uses: actions/setup-node@v3
15+
- uses: actions/checkout@v4
16+
- name: Use Node.js 20
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
2020
- name: npm install, lint, build, and test
@@ -37,13 +37,14 @@ jobs:
3737
pull-requests: write
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v1
41-
- uses: actions/setup-node@v3
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v4
4242
with:
4343
node-version: 20
4444
cache: yarn
4545
- run: yarn install --immutable
4646
- run: yarn build
47+
- run: pinst --disable
4748

4849
- name: Release
4950
env:

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"test": "echo \"TODO: write tests\" && exit 0",
2121
"clean": "yarn dlx rimraf ./build",
2222
"lint": "eslint src",
23-
"prepack": "pinst --disable",
24-
"postpack": "pinst --enable",
25-
"postinstall": "husky install && coconfig"
23+
"postinstall": "coconfig"
2624
},
2725
"bin": "./build/index.js",
2826
"publishConfig": {
@@ -43,40 +41,38 @@
4341
"*.{js,jsx,ts,tsx}": "yarn eslint src --cache --fix"
4442
},
4543
"devDependencies": {
46-
"@commitlint/cli": "^17.8.0",
47-
"@commitlint/config-conventional": "^18.1.0",
48-
"@openapi-typescript-infra/coconfig": "^4.2.2",
49-
"@semantic-release/github": "^9.2.1",
50-
"@types/configstore": "^6.0.1",
51-
"@types/handlebars-helpers": "^0.5.5",
52-
"@types/minimist": "^1.2.4",
53-
"@types/node": "^20.8.10",
54-
"@types/parse-git-config": "^3.0.3",
55-
"@types/pascalcase": "^1.0.2",
56-
"@typescript-eslint/eslint-plugin": "^6.9.1",
57-
"@typescript-eslint/parser": "^6.9.1",
58-
"coconfig": "^1.0.0",
59-
"eslint": "^8.52.0",
60-
"eslint-config-prettier": "^9.0.0",
44+
"@commitlint/cli": "^19.3.0",
45+
"@commitlint/config-conventional": "^19.2.2",
46+
"@openapi-typescript-infra/coconfig": "^4.4.0",
47+
"@semantic-release/github": "^10.0.3",
48+
"@types/configstore": "^6.0.2",
49+
"@types/handlebars-helpers": "^0.5.6",
50+
"@types/minimist": "^1.2.5",
51+
"@types/node": "^20.12.8",
52+
"@types/parse-git-config": "^3.0.4",
53+
"@types/pascalcase": "^1.0.3",
54+
"@typescript-eslint/eslint-plugin": "^6.21.0",
55+
"@typescript-eslint/parser": "^6.21.0",
56+
"coconfig": "^1.5.2",
57+
"eslint": "^8.57.0",
58+
"eslint-config-prettier": "^9.1.0",
6159
"eslint-import-resolver-typescript": "^3.6.1",
62-
"eslint-plugin-import": "^2.29.0",
63-
"husky": "^8.0.3",
64-
"lint-staged": "^15.0.2",
60+
"eslint-plugin-import": "^2.29.1",
6561
"pinst": "^3.0.0",
66-
"prettier": "^3.0.3",
67-
"typescript": "^5.2.2"
62+
"prettier": "^3.2.5",
63+
"typescript": "^5.4.5"
6864
},
6965
"packageManager": "[email protected]",
7066
"dependencies": {
71-
"@readme/openapi-parser": "^2.5.0",
67+
"@readme/openapi-parser": "^2.5.1",
7268
"boxen": "^7.1.1",
7369
"configstore": "^6.0.0",
7470
"handlebars-helpers": "^0.10.0",
7571
"minimist": "^1.2.8",
7672
"mkdirp": "^3.0.1",
7773
"openapi-types": "^12.1.3",
7874
"parse-git-config": "^3.0.0",
79-
"plop": "^4.0.0",
75+
"plop": "^4.0.1",
8076
"plop-pack-git-init": "^0.3.1"
8177
}
8278
}

0 commit comments

Comments
 (0)