diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 530f2d8..80154bf 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0082d7..516ac26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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