Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2feaa42

Browse files
committedJan 24, 2020
fix: stop searching for snapshot artefacts when the snapshot tools are skipped (it's a cloud build, there aren't any snapshot artefacts locally)
1 parent 2a0eaf6 commit 2feaa42

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎lib/after-prepare.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ module.exports = function (hookArgs) {
1212
release: hookArgs.prepareData.release
1313
};
1414

15-
if (env.snapshot && shouldSnapshot(shouldSnapshotOptions)) {
15+
if (env.snapshot &&
16+
shouldSnapshot(shouldSnapshotOptions) &&
17+
(!hookArgs.prepareData ||
18+
!hookArgs.prepareData.nativePrepare ||
19+
!hookArgs.prepareData.nativePrepare.skipNativePrepare)) {
20+
1621
installSnapshotArtefacts(hookArgs.prepareData.projectDir);
1722
}
1823
}

0 commit comments

Comments
 (0)
This repository has been archived.