From 685cd8b364f5c2e2c86d0a7981c5f9e8fa142981 Mon Sep 17 00:00:00 2001 From: Koen Van Looveren Date: Mon, 27 Nov 2023 21:29:30 +0100 Subject: [PATCH] fix: pub get at the start of the github action --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 15a2527..49530e3 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,6 @@ async function configurePubDevToken() { } async function analyzeDartProject() { - await runInWorkspace('dart', ['pub', 'get']) await runInWorkspace('dart', ['analyze']) await runInWorkspace('dart', ['format', '--set-exit-if-changed', '.']) await runInWorkspace('dart', ['pub', 'publish', '--dry-run']) @@ -81,6 +80,9 @@ async function executeScriptPreRun() { async function run() { try { + // Install dependencies + await runInWorkspace('dart', ['pub', 'get']) + // Run a script before the action (only if configured) await executeScriptPreRun()