Skip to content

Commit 32ddd01

Browse files
authored
ci: use node exec for cjs imports
1 parent bcd6b6f commit 32ddd01

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use strict'
2-
const core = require('@actions/core');
3-
const {exec} = require('@actions/exec');
2+
const {exec} = require('child_process');
3+
const {promisify} = require('util');
4+
5+
const execAsync = promisify(exec);
46

57
exports.preCommit = async (props) => {
6-
core.startGroup(`Bundling`);
7-
await exec('npm install --legacy-peer-deps');
8-
await exec('npm run package');
9-
core.endGroup();
8+
console.log('Bundling');
9+
await execAsync('npm install --legacy-peer-deps');
10+
await execAsync('npm run package');
1011
};

0 commit comments

Comments
 (0)