Skip to content

Commit 4129782

Browse files
committed
fix
1 parent 42fed98 commit 4129782

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

scripts/release.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { inc } from "semver";
77
const RELEASE_TAG = process.env.TAG || "beta";
88
const RELEASE_DRY_RUN = process.env.DRY_RUN || "true";
99
const RELEASE_VERSION_TYPE = process.env.VERSION || "prerelease";
10-
const RELEASE_NPM_TOKEN = process.env.NPM_TOKEN || "";
1110

1211
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
1312
const PKG_PATH = path.resolve(__dirname, "../package.json");
@@ -27,14 +26,6 @@ console.info(`Updating version from ${currentVersion} to ${nextVersion}`);
2726
pkg.version = nextVersion;
2827
fs.writeJsonSync(PKG_PATH, pkg, { spaces: 2 });
2928

30-
// Write npmrc
31-
const npmrcPath = `${process.env.HOME}/.npmrc`;
32-
console.info(`Writing npmrc to ${npmrcPath}`);
33-
fs.writeFileSync(
34-
npmrcPath,
35-
`//registry.npmjs.org/:_authToken=${RELEASE_NPM_TOKEN}`,
36-
);
37-
3829
// Publish to npm
3930
console.info(`Publishing to npm with tag ${RELEASE_TAG}`);
4031
const dryRun = RELEASE_DRY_RUN === "true" ? ["--dry-run"] : [];

0 commit comments

Comments
 (0)