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

Commit generated grammar on an isolated branch #155

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

alex-pinkus
Copy link
Owner

Certain consumers of tree-sitter do not wish to take a dependency on the CLI in order to generate their grammars. Long-term, those consumers will be able to use packaging systems like tspm or obtain grammars from github actions. In the short term, though, not packaging the grammar means that there is no way for them to consume it.

This creates a GitHub action that will push the static grammar to an isolated branch of this repository, allowing those systems to use GitHub as a kind of hosting system for grammar artifacts. We push the grammar on creation of a new ref to keep the number of deltas relatively low.

Fixes #149

Certain consumers of tree-sitter do not wish to take a dependency on the
CLI in order to generate their grammars. Long-term, those consumers will
be able to use packaging systems like tspm or obtain grammars from
github actions. In the short term, though, not packaging the grammar
means that there is no way for them to consume it.

This creates a GitHub action that will push the static grammar to an
isolated branch of this repository, allowing those systems to use GitHub
as a kind of hosting system for grammar artifacts. We push the grammar
on creation of a new ref to keep the number of deltas relatively low.
@alex-pinkus alex-pinkus merged commit 06250ce into main Apr 15, 2022
@alex-pinkus alex-pinkus deleted the commit-generated-files branch April 15, 2022 04:29
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.

Include generated files in repo
1 participant