Skip to content

Commit fcf0d85

Browse files
committed
chore: remove Node.js v12 support
1 parent cf51a0f commit fcf0d85

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
node: [12, 14, 16]
11+
node: [14, 16]
1212
# windows support not quite ready: os: [ubuntu-latest, windows-latest]
1313
os: [ubuntu-latest]
1414

changelog-maker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import { existsSync, readFileSync } from 'fs'
44
import { join } from 'path'
55
import process from 'process'
6-
import stream from 'stream'
6+
import { pipeline as _pipeline } from 'stream'
7+
import { promisify } from 'util'
78
import split2 from 'split2'
89
import pkgtoId from 'pkg-to-id'
910
import commitStream from 'commit-stream'
@@ -13,7 +14,7 @@ import minimist from 'minimist'
1314
import { processCommits } from './process-commits.js'
1415
import { isReleaseCommit } from './groups.js'
1516

16-
const { pipeline } = stream.promises
17+
const pipeline = promisify(_pipeline)
1718
const debug = _debug('changelog-maker')
1819
const argv = minimist(process.argv.slice(2))
1920
const help = argv.h || argv.help

0 commit comments

Comments
 (0)