Skip to content

Commit

Permalink
experiment: more checks
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Correa Casablanca <[email protected]>
  • Loading branch information
castarco committed Aug 8, 2024
1 parent 9539cdd commit 5981db9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
set -eu
set -o pipefail

pnpm turbo format-staged
pnpm turbo all
5 changes: 4 additions & 1 deletion @coderspirit/internal-tools/src/safe-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const main = async (): Promise<void> => {
return // Nothing to publish
}

if (process.env['NODE_AUTH_TOKEN'] === undefined) {
if (
process.env['NODE_AUTH_TOKEN'] === undefined ||
process.env['NODE_AUTH_TOKEN'] === ''
) {
console.error('NODE_AUTH_TOKEN is not set')
process.exit(1)
}
Expand Down

0 comments on commit 5981db9

Please sign in to comment.