actions / setup-node

Set up your GitHub Actions workflow with a specific version of node.js
MIT License
3.81k stars 1.25k forks source link

desired version is being ignored #240

Closed zilahir closed 3 years ago

zilahir commented 3 years ago

Hey,

I am tryiing to use a specific version of node, which is exactly what this package is used for.

steps:
      - uses: actions/setup-node@v2
        with:
            node-version: '12.8.1'
      - uses: actions/checkout@v2
      - uses: bahmutov/npm-install@v1
      - run: npm run build
      - uses: jsmrcaga/action-netlify-deploy@v1.1.0

but then, still getting the error:

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'teleprompter@2.1.0',
npm WARN EBADENGINE   required: { node: '>=12 < 15' },
npm WARN EBADENGINE   current: { node: 'v15.11.0', npm: '7.6.0' }
npm WARN EBADENGINE }

so it seems like, the desired version is getting ignored completely. is this a bug, or am i missing something?

workflow

joebowbeerxealth commented 3 years ago

If you look at the output from setup-node, I suspect you'll see that the correct version is reported. I suspect bahmutov/npm-install is the culprit.

zilahir commented 3 years ago

you were right, sorry!