Skip to content

Commit

Permalink
Set registry during publish
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Mar 25, 2024
1 parent 87b1b34 commit 3849a6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ignore-workspace-root-check = true
auto-install-peers = false
strict-peer-dependencies = true
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
11 changes: 7 additions & 4 deletions scripts/publish-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ packageJson.version = version
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, 2))

childProcess.execSync("pnpm build", { stdio: "inherit" })
childProcess.execSync("npm publish --ignore-scripts --access public --tag experimental", {
stdio: "inherit",
env: { ...process.env },
})
childProcess.execSync(
"npm publish --ignore-scripts --access public --tag experimental --registry //registry.npmjs.org/:_authToken=${NPM_TOKEN}",
{
stdio: "inherit",
env: { ...process.env },
},
)

0 comments on commit 3849a6c

Please sign in to comment.