chore: update action import method in workflows to use dynamic import for better error handling

This commit is contained in:
Luke Hagar
2025-08-14 22:20:50 -05:00
parent 9f771ed4b0
commit 339674dd37
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ jobs:
echo "Checking built files..."
ls -la dist/
echo "Testing action execution..."
node -e "console.log('Testing action import...'); require('./dist/action.js'); console.log('✅ Action loaded successfully')"
node -e "console.log('Testing action import...'); import('./dist/action.js').then(() => console.log('✅ Action loaded successfully')).catch(err => { console.error('❌ Action load failed:', err.message); process.exit(1); })"
- name: Get commit history
id: commits

View File

@@ -75,7 +75,7 @@ jobs:
echo "Checking built files..."
ls -la dist/
echo "Testing action execution..."
node -e "console.log('Testing action import...'); require('./dist/action.js'); console.log('✅ Action loaded successfully')"
node -e "console.log('Testing action import...'); import('./dist/action.js').then(() => console.log('✅ Action loaded successfully')).catch(err => { console.error('❌ Action load failed:', err.message); process.exit(1); })"
- name: Bump version
id: bump