samuelmeuli / action-electron-builder

:electron: GitHub Action for building and releasing Electron apps
MIT License
670 stars 206 forks source link

should use node 16, as node 12 is depreciated #87

Open mipmip opened 2 years ago

mipmip commented 2 years ago

I get this message:

release (windows-latest)
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: samuelmeuli/action-electron-builder
christianlarrabure commented 2 years ago

Can use this in the Install node step, right?

with: node-version: 16

msimic commented 2 years ago

Can use this in the Install node step, right?

with: node-version: 16

no the problem is not on the github action you create with your project but inside this github action, it simply does not work anymore until it is updated to node 16

petervanderwalt commented 1 year ago

@samuelmeuli please please fix this (: We can't live without your Action!

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/setup-node@v1, samuelmeuli/action-electron-builder@v1.6.0
TechStudent10 commented 1 year ago

@samuelmeuli Yes, my project literally depends on this for releases. Please update it.

njmulsqb commented 1 year ago

@samuelmeuli Yes, my project literally depends on this for releases. Please update it.

Just update the node version in the yml file from 10 to 16 and things will work for you, instead of waiting for the maintainer to fix it

petervanderwalt commented 1 year ago

@samuelmeuli Yes, my project literally depends on this for releases. Please update it.

Just update the node version in the yml file from 10 to 16 and things will work for you, instead of waiting for the maintainer to fix it

Is it https://github.com/samuelmeuli/action-electron-builder/blob/master/action.yml#L56 that should be changed?

njmulsqb commented 1 year ago

@petervanderwalt No, in the yml file that you put in your .github/workflows directory, https://github.com/marketplace/actions/electron-builder-action

petervanderwalt commented 1 year ago

@petervanderwalt No, in the yml file that you put in your .github/workflows directory, https://github.com/marketplace/actions/electron-builder-action

I have, see https://github.com/OpenBuilds/OpenBuilds-CONTROL/blob/55749cf07e6e4ebbacb59d5b5b25a493950660b0/.github/workflows/build.yml#L21 - but thats exactly when GA complains that the Action (which specifies https://github.com/samuelmeuli/action-electron-builder/blob/master/action.yml#L56 to use Node-12) results in Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: samuelmeuli/action-electron-builder

The "action" should be updated to use newer versions of Node - not the Workflow

whutchinson98 commented 1 year ago

@petervanderwalt No, in the yml file that you put in your .github/workflows directory, https://github.com/marketplace/actions/electron-builder-action

@njmulsqb It's not about the workflow you use it in. It's about the underlying dependencies that this action has (Node 12) which is why the action itself needs to be updated.

petervanderwalt commented 1 year ago

why the action itself needs to be updated.

Exactly - So my earlier comment.

Is it https://github.com/samuelmeuli/action-electron-builder/blob/master/action.yml#L56 that should be changed?

After all then.

whutchinson98 commented 1 year ago

why the action itself needs to be updated.

Exactly - So my earlier comment.

Is it https://github.com/samuelmeuli/action-electron-builder/blob/master/action.yml#L56 that should be changed?

After all then.

Yep! I forked the repo and changed it myself and everything worked fine.

njmulsqb commented 1 year ago

@petervanderwalt Sorry, I am pretty new to github actions so couldnt understand your statement technically. I just changed the node version in my local workflows file and this action is now working fine with me and is producing releases perfectly. @whutchinson98 How can one use your fork? I mean the current repo's action is available on marketplace and thus can be utilized from there. How can I use your fork in github actions? Thanks!

whutchinson98 commented 1 year ago

@petervanderwalt Sorry, I am pretty new to github actions so couldnt understand your statement technically. I just changed the node version in my local workflows file and this action is now working fine with me and is producing releases perfectly. @whutchinson98 How can one use your fork? I mean the current repo's action is available on marketplace and thus can be utilized from there. How can I use your fork in github actions? Thanks!

I have forked the repo into my companies organization. It's a public action and can be found here. Just a note that the readme is out of date as the action name has obviously changed. Simply click on the "use latest version" button to get the new action name coparse-inc/action-electron-builder@v1.0.0

petervanderwalt commented 1 year ago

Yep! I forked the repo and changed it myself and everything worked fine.

Figured, thanks!

TechStudent10 commented 1 year ago

@petervanderwalt Sorry, I am pretty new to github actions so couldnt understand your statement technically. I just changed the node version in my local workflows file and this action is now working fine with me and is producing releases perfectly. @whutchinson98 How can one use your fork? I mean the current repo's action is available on marketplace and thus can be utilized from there. How can I use your fork in github actions? Thanks!

I have forked the repo into my companies organization. It's a public action and can be found here. Just a note that the readme is out of date as the action name has obviously changed. Simply click on the "use latest version" button to get the new action name coparse-inc/action-electron-builder@v1.0.0

Thank you so much!

vingeraycn commented 6 months ago

Now you can use https://github.com/marketplace/actions/electron-builder-action-using-node-20 for node 20

@petervanderwalt Sorry, I am pretty new to github actions so couldnt understand your statement technically. I just changed the node version in my local workflows file and this action is now working fine with me and is producing releases perfectly. @whutchinson98 How can one use your fork? I mean the current repo's action is available on marketplace and thus can be utilized from there. How can I use your fork in github actions? Thanks!

I have forked the repo into my companies organization. It's a public action and can be found here. Just a note that the readme is out of date as the action name has obviously changed. Simply click on the "use latest version" button to get the new action name coparse-inc/action-electron-builder@v1.0.0

petervanderwalt commented 6 months ago

Thanks for the update, we forked at the time and figured it out. Also adapted the action to do the stuff we wanted, so we are good for now, but glad you updated it for everyone else (: