Skip to content

Commit

Permalink
Check if NPM_TOKEN present
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Mar 25, 2024
1 parent c8fb49d commit 842c3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/publish-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const version = `0.0.0-${shortCommit}`

console.log(`Publishing ${version} to npm...`)

console.log("NPM_TOKEN", process.env.NPM_TOKEN?.length)

const packageJson = JSON.parse(fs.readFileSync("package.json", "utf8"))
packageJson.version = version
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, 2))
Expand Down

0 comments on commit 842c3ed

Please sign in to comment.