Skip to content

Commit 1886ec6

Browse files
committed
release: v5.0.4
1 parent ba98140 commit 1886ec6

4 files changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22.x
19-
cache: 'npm'
20-
- run: npm ci
18+
node-version: 24.x
19+
- run: npm install
2120
- run: npm test
2221

2322
publish-npm:
@@ -27,8 +26,7 @@ jobs:
2726
- uses: actions/checkout@v4
2827
- uses: actions/setup-node@v4
2928
with:
30-
node-version: 22.x
29+
node-version: 24.x
3130
registry-url: https://registry.npmjs.org/
32-
cache: 'npm'
33-
- run: npm ci
31+
- run: npm install
3432
- run: npm publish --provenance --access public

History.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
5.0.4 / 2025-11-16
2+
==================
3+
4+
## What's Changed
5+
* fix: do not crash on empty config files by @KnorpelSenf in https://github.com/cyjake/ssh-config/pull/95
6+
* refactor: improve TypeScript build configuration by @cyjake in https://github.com/cyjake/ssh-config/pull/96
7+
* Ci/trusted npm publish by @cyjake in https://github.com/cyjake/ssh-config/pull/97
8+
9+
## New Contributors
10+
* @KnorpelSenf made their first contribution in https://github.com/cyjake/ssh-config/pull/95
11+
12+
**Full Changelog**: https://github.com/cyjake/ssh-config/compare/v5.0.3...v5.0.4
13+
114
5.0.3 / 2025-02-05
215
==================
316

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ssh-config",
33
"description": "SSH config parser and stringifier",
4-
"version": "5.0.3",
4+
"version": "5.0.4",
55
"author": "Chen Yangjian (https://www.cyj.me)",
66
"repository": {
77
"type": "git",
@@ -29,6 +29,7 @@
2929
"lint:fix": "eslint --ext ts --fix .",
3030
"build": "tsc",
3131
"prepack": "npm run build",
32+
"pretest": "npm run build",
3233
"test": "mocha",
3334
"test:coverage": "nyc mocha && nyc report --reporter=lcov"
3435
},

test/unit/stringify.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SSHConfig from '../..'
66

77
const { parse, stringify } = SSHConfig
88

9-
function readFile(fname) {
9+
function readFile(fname: string) {
1010
const fpath = path.join(__dirname, '..', fname)
1111
return fs.readFileSync(fpath, 'utf-8').replace(/\r\n/g, '\n')
1212
}

0 commit comments

Comments
 (0)