fix: remove misplaced shebang causing CI syntax error in validate-yaml.js#133
Merged
huangyiirene merged 2 commits intocopilot/add-mit-license-header-againfrom Jan 18, 2026
Conversation
The shebang #!/usr/bin/env node was on line 9 instead of line 1, causing a SyntaxError when the script was executed with 'node' explicitly. Since the workflow uses 'pnpm exec node scripts/validate-yaml.js', the shebang is not needed and has been removed. Fixes workflow run: https://github.com/objectstack-ai/objectql/actions/runs/21106340992 Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update test action steps for workflow
fix: remove misplaced shebang causing CI syntax error in validate-yaml.js
Jan 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CI workflow "Validate YAML Metadata" was failing with
SyntaxError: Invalid or unexpected tokenwhen executingpnpm exec node scripts/validate-yaml.js.Root Cause
The shebang
#!/usr/bin/env nodewas on line 9 (after the license header) instead of line 1. When Node.js explicitly loads a file, shebangs in non-first-line positions are interpreted as JavaScript code.Changes
scripts/validate-yaml.jsnodeexplicitlyThe script now matches the pattern used by
check-versions.jswhich also runs via explicitnodeinvocation without a shebang.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.