-
Notifications
You must be signed in to change notification settings - Fork 3
Replace Bun with Node.js #7
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,15 +55,32 @@ runs: | |
| env: | ||
| CUSTOM_GUIDELINES: ${{ inputs.custom_guidelines }} | ||
|
|
||
| - name: Run Augment Agent | ||
| uses: augmentcode/augment-agent@v0 | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3f3f432c # v4.1.0 | ||
| with: | ||
| augment_session_auth: ${{ inputs.augment_session_auth }} | ||
| github_token: ${{ inputs.github_token }} | ||
| template_directory: "${{ github.action_path }}/templates" | ||
| pull_number: ${{ inputs.pull_number }} | ||
| repo_name: ${{ inputs.repo_name }} | ||
| custom_context: ${{ steps.custom_context.outputs.context }} | ||
| model: ${{ inputs.model }} | ||
| rules: ${{ inputs.rules }} | ||
| mcp_configs: ${{ inputs.mcp_configs }} | ||
| node-version: "22" | ||
|
|
||
| - name: Install Dependencies | ||
| run: npm ci --production=false | ||
| shell: bash | ||
| working-directory: ${{ github.action_path }} | ||
|
|
||
| - name: Build TypeScript | ||
| run: npm run build | ||
| shell: bash | ||
| working-directory: ${{ github.action_path }} | ||
|
|
||
| - name: Run Augment Agent | ||
| run: node ${{ github.action_path }}/dist/index.js | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical Issue: This step attempts to run This will cause the action to fail with a "Cannot find module" error. Required actions:
Without these changes, the action cannot execute successfully. |
||
| shell: bash | ||
| env: | ||
| INPUT_AUGMENT_SESSION_AUTH: ${{ inputs.augment_session_auth }} | ||
| INPUT_GITHUB_TOKEN: ${{ inputs.github_token }} | ||
| INPUT_PULL_NUMBER: ${{ inputs.pull_number }} | ||
| INPUT_REPO_NAME: ${{ inputs.repo_name }} | ||
| INPUT_CUSTOM_GUIDELINES: ${{ inputs.custom_guidelines }} | ||
| INPUT_MODEL: ${{ inputs.model }} | ||
| INPUT_RULES: ${{ inputs.rules }} | ||
| INPUT_MCP_CONFIGS: ${{ inputs.mcp_configs }} | ||
| INPUT_TEMPLATE_DIRECTORY: "${{ github.action_path }}/templates" | ||
| INPUT_CUSTOM_CONTEXT: ${{ steps.custom_context.outputs.context }} | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment "we use tsx to run directly" is misleading in the context of this PR. According to action.yml, the action runs pre-compiled JavaScript from the dist/ directory (
node ${{ github.action_path }}/dist/index.js), not TypeScript via tsx.Suggested improvement:
# TypeScript compiled output in src/ (dist/ contains the built action)