Skip to content

Conversation

@paescuj
Copy link
Contributor

@paescuj paescuj commented Oct 17, 2025

This might fix #791; I guess the workflow stopped working because the GITHUB_TOKEN 1 no longer has any write permissions by default. Explicitly granting write permissions on contents ensures it can create GitHub releases again. Write permissions on contents implies read permissions, so I'd assume this should also be sufficient to get the necessary data to generate the changelog.

The steps to setup the env (Node.js and pnpm) are now consolidated in a "setup" action.

The current main/dev version of Node.js is now defined via the .node-version file which is used by the action as the default version. This file is also respected by some Node.js version managers.

In the CI workflow, the Node.js and OS matrix values are now correctly passed on (previously had no effect).

The actions are updated to their latest versions.

The PR also contains some semantic/stylistic alignments, like naming all jobs and steps.

Lastly, I've changed the file extensions from yml to yaml, which is a personal preference, e.g. for consistency with the pnpm config files. Let me know if you prefer yml though, and I'll revert that. And of course, if you dislike any other changes or prefer to have the changes split across multiple PRs.

Footnotes

  1. https://docs.github.com/en/actions/tutorials/authenticate-with-github_token#modifying-the-permissions-for-the-github_token

@paescuj paescuj force-pushed the chore/fix-and-enhance-workflows branch from 8be7b58 to b46c3da Compare October 17, 2025 18:00
@paescuj paescuj force-pushed the chore/fix-and-enhance-workflows branch from b46c3da to 2604b6f Compare October 17, 2025 18:01
@paescuj paescuj marked this pull request as ready for review October 17, 2025 18:01
Copy link
Member

@veritem veritem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@veritem veritem merged commit 3d69120 into vitest-dev:main Oct 18, 2025
5 checks passed
@paescuj paescuj deleted the chore/fix-and-enhance-workflows branch October 18, 2025 13:13
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

Successfully merging this pull request may close these issues.

Fix release script

2 participants