Skip to content

Commit

Permalink
fix(verify): fix verify function being skipped due to incorrect name
Browse files Browse the repository at this point in the history
  • Loading branch information
djcsdy committed Oct 24, 2019
1 parent 4ef81e9 commit 0d8d8d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Config, Upload} from "./config";
import publish from "./publish";
import verifyConditions from "./verify-conditions";
import verify from "./verify";

export {publish, Config, Upload, verifyConditions};
export {publish, Config, Upload, verify};
6 changes: 3 additions & 3 deletions publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import * as path from "path";
import {Context} from "semantic-release";
import {Config} from "./index";
import parallel from "./parallel";
import {verified} from "./verify-conditions";
import {verified} from "./verify";

export default async function publish(config: Config, context: Context): Promise<void> {
if (!verified) {
throw new Error("verifyConditions was not called. semantic-release-s3-upload " +
"needs to be included in the verifyConditions step");
throw new Error("verify.ts was not called. semantic-release-s3-upload " +
"needs to be included in the verify.ts step");
}

const {logger} = context;
Expand Down
2 changes: 1 addition & 1 deletion verify-conditions.ts → verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Config} from "./config";

export let verified = false;

export default async function verifyConditions(config: Config, context: Context): Promise<void> {
export default async function verify(config: Config, context: Context): Promise<void> {
const accessKeyId = context.env.AWS_ACCESS_KEY_ID;
const secretAccessKey = context.env.AWS_SECRET_ACCESS_KEY;

Expand Down

0 comments on commit 0d8d8d7

Please sign in to comment.