From d4ecc5e312f500c6a3dab6f4ab64a24a5f58b06d Mon Sep 17 00:00:00 2001 From: "Geoffrey.C" Date: Tue, 10 Dec 2024 15:01:35 +0800 Subject: [PATCH] fix: set failed when npm install fails set failed when npm install fails fix #224 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f012c73..3d2f273 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ +const core = require('@actions/core'); const exec = require('./src/_exec'); const path = require('path'); @@ -16,4 +17,4 @@ const run = async () => { require('./src/index')(); }; -run().catch(console.error); +run().catch(core.setFailed);