Skip to content

Commit

Permalink
Remove unnecessary try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins committed Jan 5, 2024
1 parent b7ae3e5 commit dd7e6c8
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
import { publish } from '@tanstack/config/publish'
import { branchConfigs, packages, rootDir } from './config.js'

try {
await publish({
branchConfigs,
packages,
rootDir,
branch: process.env.BRANCH,
tag: process.env.TAG,
ghToken: process.env.GH_TOKEN,
})
} catch (error) {
console.error(error)
process.exit(1)
}
await publish({
branchConfigs,
packages,
rootDir,
branch: process.env.BRANCH,
tag: process.env.TAG,
ghToken: process.env.GH_TOKEN,
})

0 comments on commit dd7e6c8

Please sign in to comment.