Skip to content

Commit

Permalink
fix: allow disabling provenance in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jul 3, 2023
1 parent 2d2d680 commit 3164854
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/publish.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isCI } from "std-env";
import { isCI, provider } from "std-env";

import { ChangelogConfig } from "./config";
import { execCommand } from "./exec";
Expand All @@ -10,7 +10,11 @@ export async function publishNpmPackage(config: ChangelogConfig) {
args.push("--tag", config.edgeTag ?? "edge");
}

if (isCI) {
if (
isCI &&
provider === "github_actions" &&
process.env.NPM_CONFIG_PROVENANCE !== "false"
) {
args.push("--provenance");
}

Expand Down

0 comments on commit 3164854

Please sign in to comment.