We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd6b6f commit 32ddd01Copy full SHA for 32ddd01
1 file changed
.github/changelog/pre_commit_hook.cjs
@@ -1,10 +1,11 @@
1
'use strict'
2
-const core = require('@actions/core');
3
-const {exec} = require('@actions/exec');
+const {exec} = require('child_process');
+const {promisify} = require('util');
4
+
5
+const execAsync = promisify(exec);
6
7
exports.preCommit = async (props) => {
- core.startGroup(`Bundling`);
- await exec('npm install --legacy-peer-deps');
8
- await exec('npm run package');
9
- core.endGroup();
+ console.log('Bundling');
+ await execAsync('npm install --legacy-peer-deps');
10
+ await execAsync('npm run package');
11
};
0 commit comments