File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1818 node-version : 12
1919 - name : Install dependencies
2020 run : npm ci
21- - run : echo ${{github.ref}}
2221 - name : Release Dry-Run
2322 if : github.ref != 'refs/heads/master'
2423 env :
Original file line number Diff line number Diff line change 11{
22 "name" : " lambda-edge-azure-auth" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.1.0 " ,
44 "description" : " An AWS Cloudfront Lambda@Edge function to authenticate requests using Microsoft Azure." ,
55 "main" : " index.js" ,
66 "scripts" : {
77 "test" : " cd tests && npm install && cd .. && node tests/tests.js" ,
8- "build" : " npm install && cd build && npm install && cd .. && node build/build.js" ,
9- "package" : " "
8+ "build" : " npm install && cd build && npm install && cd .. && node build/build.js"
109 },
1110 "author" : " Nick Shine" ,
1211 "repository" : " github:nickshine/lambda-edge-azure-auth" ,
Original file line number Diff line number Diff line change @@ -4,10 +4,17 @@ set -euo pipefail
44
55version=${1?" Usage: $0 VERSION" }
66
7+ rm -rf dist
78mkdir -p dist
89
910cp ./authz/microsoft.js ./dist/auth.js
1011cp ./authn/openid.index.js ./dist/index.js
1112cp ./nonce.js ./dist/nonce.js
13+ cp package.json package-lock.json ./dist/
1214
13- zip -q -j ./dist/lambda-edge-azure-auth-${version} .zip ./dist/* .js
15+ cd dist && npm ci --production;
16+
17+ zip_path=" ./lambda-edge-azure-auth-${version} .zip"
18+ zip -q -j $zip_path ./{* .js,* .json}
19+ zip -q -r $zip_path ./node_modules
20+ cd -
You can’t perform that action at this time.
0 commit comments