thomaseizinger / keep-a-changelog-new-release

Automatically update your CHANGELOG.md for a new release
MIT License
56 stars 38 forks source link

`set-output` deprecation warning #29

Open baynezy opened 3 months ago

baynezy commented 3 months ago

I get the following after every run of your action.

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ for more information.

From my understanding, you need to move to set the release notes via setOutput() to the environment variable GITHUB_OUTPUT.

I think this bug was introduced with https://github.com/thomaseizinger/keep-a-changelog-new-release/pull/28

thomaseizinger commented 3 months ago

We just use the SDK function. Maybe we need a dependency update? PRs welcome!

baynezy commented 3 months ago

I am pretty sure that all you need to do is update @actions/core. I have tried this, but I am no Typescript developer and I just get hammered by a web of yarn and jest issues. This is likely due to my not knowing what I am doing in this ecosystem. By changing one version number in the package.json file it changed hundreds of lines of the yarn.lock file.

Now when I run the tests getInputs.test.ts complains that Cannot find module 'node:stream' from 'main.js'. There is no main.js in your project. So I am at an impass.

I hope that someone else who cares about this project and does have familiarity with Typescript; can make this hopefully simple change.

thomaseizinger commented 3 months ago

Thank you for trying! npm is an absolute mess and I don't have the bandwidth to deal with it right now unfortunately.

Is there an EOL deadline for when we need to deal with this warning?

baynezy commented 3 months ago

@thomaseizinger they've been trying to remove that functionality since mid last year. They keep postponing it because not enough people have moved. However, it's only a matter of time.

baynezy commented 3 months ago

@nbusseneau - I am not sure if this is something you could pick up. It was introduced in your PR #28

nbusseneau commented 3 months ago

No, sorry. I am not dealing with any of this mess, I already lost enough of my sanity in just getting it to work for #28, as you can see from looking at the thread 😢

nbusseneau commented 3 months ago

(And yes, updating the @actions/core dependency will suffice here, it supports the new file-command objects ever since that initial deprecation notice, no additional code change should be needed, though getting the project to update as a whole probably will.)