Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead" #198

Closed
nxp923 opened this issue Apr 4, 2022 · 4 comments

Comments

@nxp923
Copy link

nxp923 commented Apr 4, 2022

Our workflow job failing since new changes added to the code. It's failing load auto-approe-action and throwing below error.

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter ''using: node16' is not supported, use 'docker' or 'node12' instead.').

and also tried to use below action in our workflow to install node16

  • uses: actions/setup-node@v2
    with:
    node-version: '16'
    cache: 'npm'
    • run: npm install
@hmarr
Copy link
Owner

hmarr commented Apr 4, 2022

It looks like the default version is now node16. Are you using self-hosted runners, by any chance? It looks like node16 is available if you're using GHES 3.4 or later.

In the meantime, pinning to v2.1.0 (uses: hmarr/auto-approve-action@v2.1.0) will take you back to the node12 based version.

@nxp923
Copy link
Author

nxp923 commented Apr 4, 2022

Thanks Harry for replying.
v2.1.0 does not accept PR# as an input it takes only one input param i.e. github token. In our case it will not work.
and our GHES is 3.2 version.
Any other suggestions?
Appreciate your help.

@hmarr
Copy link
Owner

hmarr commented Apr 4, 2022

I just tested the recent changes with Node 12 and they seemed to work, so I reverted to Node 12.

Can you check that the v2 branch works? I'll cut a new release if so.

@nxp923
Copy link
Author

nxp923 commented Apr 4, 2022

Thanks Harry for the quick help. It resolved our issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants