Skip to content

Commit

Permalink
feat: change npmrc path
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Feb 1, 2024
1 parent c7e0760 commit 0d84d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { castArray, defaultTo } from "lodash-es";
import AggregateError from "aggregate-error";
import os from "os";
import path from "path";
import { temporaryFile } from "tempy";
import getPkg from "./lib/get-pkg.js";
import verifyNpmConfig from "./lib/verify-config.js";
Expand All @@ -10,7 +12,7 @@ import publishNpm from "./lib/publish.js";

let verified;
let prepared;
const npmrc = temporaryFile({ name: ".npmrc" });
const npmrc = path.join(os.homedir(), '.npmrc')

export async function verifyConditions(pluginConfig, context) {
// If the npm publish plugin is used and has `npmPublish`, `tarballDir` or `pkgRoot` configured, validate them now in order to prevent any release if the configuration is wrong
Expand Down

0 comments on commit 0d84d82

Please sign in to comment.