bahmutov / npm-install

GitHub Action for install npm dependencies with caching without any configuration
https://github.com/marketplace/actions/npm-or-yarn-install-with-caching
652 stars 71 forks source link

workflow main fails #178

Closed MikeMcC399 closed 1 year ago

MikeMcC399 commented 1 year ago

.github/workflows/main.yml fails and has been doing so for the past 2 months. This is since the default Node.js version was bumped from Node.js 16.19.0 to (at first) 18.15.0.

It causes all current PRs of renovate to fail in CI tests.

For example,

https://github.com/bahmutov/npm-install/actions/runs/4584330015 with

> npm run build
> npm-install@0.0.0-development build
> ncc build -o dist index.js
ncc: Version 0.22.3
ncc: Compiling file index.js
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:[19](https://github.com/bahmutov/npm-install/actions/runs/4584330015/jobs/8095752511#step:7:20))
    at Object.createHash (node:crypto:133:10)
    at hashOf (/home/runner/work/npm-install/npm-

Suggestions

ncc

https://www.npmjs.com/package/@zeit/ncc

Author message:

@zeit/ncc is no longer maintained. Please use @vercel/ncc instead

cache

Check also other deprecations for necessary updates e.g. update to actions/cache@v3.