mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 04:21:55 +00:00
chore: update action import method in workflows to use dynamic import for better error handling
This commit is contained in:
2
.github/workflows/auto-release.yml
vendored
2
.github/workflows/auto-release.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user