Repository navigation
Fix setTimeout and add npm publish CI - #5
Conversation
- Replace restricted setTimeout with sleep from n8n-workflow - Add no-restricted-globals eslint rule to catch future violations - Add GitHub Actions workflow for npm publish with provenance on merge to master - Bump version to 0.5.1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @rafalzawadzki's task —— View job Pull Request ReviewI've completed my review of this PR. Overall, this is a well-executed fix that properly addresses the n8n community package requirements. Here's my detailed feedback: Todo List
✅ Strengths1. Correct setTimeout Replacement -
2. Proactive Prevention -
3. Secure CI/CD Setup -
🔧 Minor Recommendations1. Workflow Optimization - - run: pnpm publish --provenance --no-git-checks --access public2. Error Handling Enhancement - // Optional: Add debug logging
console.log(`Polling job ${jobId}, attempt ${Math.floor((Date.now() - startTime) / pollIntervalMs) + 1}`);
await sleep(pollIntervalMs);3. Workflow Testing 📊 Code Quality Assessment
🔍 No Issues Found
📋 Final RecommendationAPPROVE - This PR successfully addresses the n8n community package scanner violation while implementing best practices for prevention and CI/CD. The changes are minimal, focused, and well-executed. The only remaining test item mentioned in the PR description is verifying the publish workflow runs successfully on merge to master, which is appropriate to test after merge. |
Summary
setTimeoutwithsleepfromn8n-workflow(fixes community package scanner violation)no-restricted-globalseslint rule to prevent future use ofsetTimeout/setInterval/setImmediate--provenanceon merge to master (using Trusted Publishers)Test plan
pnpm buildpassespnpm lintpasses with no restricted globals violations🤖 Generated with Claude Code