-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
36 lines (36 loc) · 1.41 KB
/
package.json
File metadata and controls
36 lines (36 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"name": "lambda-github-actions",
"version": "1.0.1",
"description": "Lambda CI with github actions",
"main": "./src/index.mjs",
"type": "module",
"scripts": {
"build" : "npx @vercel/ncc build ./src/index.mjs",
"build:min" : "npm run build -- -m",
"build:zip" : "npm run build:min && zip -j ./dist/deploy.zip ./dist/*",
"deploy" : "npm run build:zip && aws lambda update-function-code --function-name `echo $(jq -r '.FunctionName' lambda.config.json)` --zip-file=fileb://./dist/deploy.zip",
"invoke": "aws lambda invoke --function-name `echo $(jq -r '.FunctionName' lambda.config.json)` --payload fileb://./events/example.json response.json",
"invoke:local": "sam local invoke -e ./events/example.json LambdaGithubActions",
"get:info": "aws lambda get-function --function-name `echo $(jq -r '.FunctionName' lambda.config.json)`",
"get:url": "aws lambda get-function-url-config --function-name `echo $(jq -r '.FunctionName' lambda.config.json)`"
},
"repository": {
"type": "git",
"url": "git+https://github.com/diegofcornejo/lambda-github-actions.git"
},
"keywords": [
"lambda",
"ci",
"git",
"github",
"actions",
"workflow",
"serverless"
],
"author": "Diego Cornejo",
"license": "MIT",
"bugs": {
"url": "https://github.com/diegofcornejo/lambda-github-actions/issues"
},
"homepage": "https://github.com/diegofcornejo/lambda-github-actions#readme"
}