The workflow currently tests with Node.js 12, 14 & 16:
Node.js Release Schedule shows:
- Node.js 18 entering Active LTS status on October 25, 2022
- Node.js 12 entering End-of-Life on April 30, 2022
so Node.js 18 should be added and probably Node.js 12 could be removed.
npm run build on v4.2.0 v4.2.1 is unsuccessful on Windows 11 (see log below) with Node.js v18.12.1 and on Ubuntu 22.04.1 LTS:
$ npm run build
> @cypress/github-action@0.0.0-development build
> ncc build -o dist index.js
ncc: Version 0.33.1
ncc: Compiling file index.js into CJS
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at hashOf (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/index.js.cache.js:37:1890023)
at ncc (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/index.js.cache.js:37:1894690)
at runCmd (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/cli.js.cache.js:1:52268)
at 819 (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/cli.js.cache.js:1:48838)
at __webpack_require__ (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/cli.js.cache.js:1:59076)
at D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/cli.js.cache.js:1:59288
at D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc/cli.js.cache.js:1:59349
at Object.<anonymous> (D:\github2\cypress-io\github-action\node_modules\@vercel\ncc\dist\ncc\cli.js:8:28) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Currently the ncc version is specified as follows:
Bumping ncc to 0.33.2 resolves this error.
https://github.com/vercel/ncc/releases/tag/0.33.2
The workflow currently tests with Node.js 12, 14 & 16:
github-action/.github/workflows/main.yml
Line 12 in 30008f1
Node.js Release Schedule shows:
so Node.js 18 should be added and probably Node.js 12 could be removed.
npm run buildonv4.2.0v4.2.1 is unsuccessful on Windows 11 (see log below) with Node.js v18.12.1 and on Ubuntu 22.04.1 LTS:Currently the ncc version is specified as follows:
github-action/package.json
Line 49 in 30008f1
Bumping ncc to 0.33.2 resolves this error.
https://github.com/vercel/ncc/releases/tag/0.33.2