File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Integration Tests
2
2
3
3
on :
4
- pull_request :
4
+ push :
5
5
branches : [ master ]
6
6
7
7
jobs :
Original file line number Diff line number Diff line change 1
1
name : aws-lambda-layer
2
- version : 0.0.3
2
+ version : 0.0.4
3
3
author : ac360
4
4
org : serverlessinc
5
5
description : Deploys an AWS Lambda Layer
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ const sleep = async (wait) => new Promise((resolve) => setTimeout(() => resolve(
14
14
* @param ${string} region - aws region
15
15
*/
16
16
const getClients = ( credentials , region = 'us-east-1' ) => {
17
+ // this error message assumes that the user is running via the CLI though...
18
+ if ( Object . keys ( credentials ) . length === 0 ) {
19
+ const msg = `Credentials not found. Make sure you have a .env file in the cwd. - Docs: https://git.io/JvArp`
20
+ throw new Error ( msg )
21
+ }
22
+
17
23
AWS . config . update ( {
18
24
httpOptions : {
19
25
agent
You can’t perform that action at this time.
0 commit comments