Skip to content

Commit

Permalink
fix: better npmrc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Mar 28, 2024
1 parent afe0696 commit 1dc76cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/commands/generate_workflow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1dc76cc

Please sign in to comment.