-
Notifications
You must be signed in to change notification settings - Fork 16
Customize node version and custom build steps #27
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
Comments
As for how to do this, a good idea might be to inspire from https://docs.cypress.io/guides/continuous-integration/github-actions#Basic-Setup. As far as I can understand from it, differently from what we do in this action it is left to the user to check out the source code in the same step, whereas we are invoking the checkout action in the action's code. Along the same lines, if you want a specific node version you use the setup-node action in your code, whereas the action code is doing nothing about it and it's probably using whatever version comes with the runner. Finally, the cypress action allows to specify custom steps to run, which is also an option to include in this action |
We are running multiple node.js versions actually.
In this case, it is node.js 12: (I'm running a playground workflow to spot these details) Note that it seems not possible getting by input a specific node.js version:
Right now, the
I think a safer approach could be:
What do you think? |
I'm not sure about this. The action has node_modules in the repo, I don't think it does npm i for that reason.
I'm not sure I understand this. Why do we need to ask for anything if we ask the user to do whatever build steps are needed before they invoke the action? This means that in our scenario (the automerge action) the user would do:
Then the action wouldn't need to do npm i internally anymore I guess |
The action is running npm install to install pacakges in https://github.com/nearform/optic-release-automation-action/blob/main/action.yml#L51.
This raises a few questions, e.g.:
Overall it sounds like more control over what's run by this action is necessary
The text was updated successfully, but these errors were encountered: