From ef9761f469d047f3ff3b991e2d92e428141be790 Mon Sep 17 00:00:00 2001 From: agwhi Date: Fri, 14 May 2021 16:30:47 +0100 Subject: [PATCH] update release config --- .release-it.json | 7 +++++++ src/helpers/general.js | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.release-it.json b/.release-it.json index d280b4d..ef78b28 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,5 +1,12 @@ { "github": { "release": true + }, + "hooks": { + "before:init": "yarn lint", + "after:my-plugin:bump": "./bin/my-script.sh", + "after:bump": "yarn build", + "after:git:release": "echo After git push, before github release", + "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}." } } diff --git a/src/helpers/general.js b/src/helpers/general.js index 5aae0e9..9768426 100644 --- a/src/helpers/general.js +++ b/src/helpers/general.js @@ -34,9 +34,9 @@ export const AWSClient = AWS; const cloudformation = new AWSClient.CloudFormation(); -export const getStackResources = (stackName) => +export const getStackResources = (stack) => cloudformation - .describeStacks({ StackName: stackName }) + .describeStacks({ StackName: stack }) .promise() .catch((error) => { console.error(error);