Skip to content

Commit

Permalink
fix(release): build path, do not read 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Jun 30, 2021
1 parent 14feb7f commit b4e89a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/utils/src/support/semantic-release-app-hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ exports.verifyConditions = (config, context) => {
const { pkgRoot } = config
const { env } = context

// make sure to read the file from disk since it will have changed
// in a previous external step (semantic-release/npm), and if we use
// require here we get a cached result.
const packagePath = fs.readJsonSync(pkgRoot, 'package.json')
const packagePath = path.join(pkgRoot, 'package.json')

if (!fs.existsSync(packagePath)) {
throw new SemanticReleaseError(
Expand Down

0 comments on commit b4e89a0

Please sign in to comment.