From 1dc76ccd067c2e4ba9bbc4065ad87555124cde53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Postula?= Date: Thu, 28 Mar 2024 14:42:41 +0100 Subject: [PATCH] fix: better npmrc generation --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/generate_workflow/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7454a9e..69997a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,7 +240,7 @@ dependencies = [ [[package]] name = "cargo-fslabscli" -version = "1.1.8" +version = "1.1.9" dependencies = [ "anyhow", "assert_fs", diff --git a/Cargo.toml b/Cargo.toml index bef523b..c955c70 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-fslabscli" -version = "1.1.8" +version = "1.1.9" edition = "2021" authors = ["FSLABS DevOps Gods"] repository = "https://github.com/ForesightMiningSoftwareCorporation/fslabsci" diff --git a/src/commands/generate_workflow/mod.rs b/src/commands/generate_workflow/mod.rs index 32994dc..092392e 100644 --- a/src/commands/generate_workflow/mod.rs +++ b/src/commands/generate_workflow/mod.rs @@ -487,8 +487,8 @@ pub async fn generate_workflow( let github_secret_key = scope.clone().replace('.', "_").to_ascii_uppercase(); let run = format!( r#" -echo "@{scope}:registry=https://npm.pkg.github.com/ >> .npmrc" -echo "//npm.pkg.github.com/:_authToken=${{{{ secrets.NPM_{github_secret_key}_TOKEN }}}} >> .npmrc" +echo "@{scope}:registry=https://npm.pkg.github.com/" >> .npmrc +echo "//npm.pkg.github.com/:_authToken=${{{{ secrets.NPM_{github_secret_key}_TOKEN }}}}" >> .npmrc "# ); return Some(GithubWorkflowJobSteps {