pascalgn / npm-publish-action

GitHub action to automatically publish packages to npm
MIT License
221 stars 29 forks source link

Replace deprecated set-ouput command #54

Open EdwinOtten opened 9 months ago

EdwinOtten commented 9 months ago

Problem

I was getting these warnings in my pipeline because the set-output command is now deprecated. Screenshot 2023-11-24 104213

Solution

Write to GitHub environment file instead of using the deprecated set-output command.

Following recommendations from https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

EdwinOtten commented 9 months ago

@pascalgn how can I verify if this change works? (some automated tests I can run?)