Skip to content
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

feat(check-for-non-releasable-actions): find reusable workflows too #608

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iainlane
Copy link
Member

@iainlane iainlane commented Dec 2, 2024

We need to release reusable workflows just like we do for Actions. The current linter didn't check for that, so it's added here. This required an extra library to parse the YAML, and GitHub scripts can't install new dependencies, so it's broken out to a small internal/ composite action which can.

Now we have two Typescript actions, it made sense to centralise some of the setup. We have a shared eslint config now, and bun workspaces for each of the modules so they can cross-reference.

@iainlane iainlane force-pushed the iainlane/find-missing-reusable-workflows branch 7 times, most recently from 63ee73c to 6251c8c Compare December 2, 2024 19:27
We need to release reusable workflows just like we do for Actions. The
current linter didn't check for that, so it's added here. This required
an extra library to parse the YAML, and GitHub scripts can't install new
dependencies, so it's broken out to a small `internal/` composite action
which can.

Now we have two Typescript actions, it made sense to centralise some of
the setup. We have a shared `eslint` config now, and `bun` workspaces
for each of the modules so they can cross-reference.
@iainlane iainlane force-pushed the iainlane/find-missing-reusable-workflows branch from 6251c8c to c7f4ffd Compare December 2, 2024 19:28
@iainlane
Copy link
Member Author

iainlane commented Dec 2, 2024

To be able to finish this PR, I need to figure out how to get release-please to release a reusable workflow. The problem is it wants to handle a directory (create a changelog for example, and update it when there are any changes in there) but these are just single files in .github/workflows.

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.

1 participant