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 18
18
node-version : 12
19
19
- name : Install dependencies
20
20
run : npm ci
21
- - run : echo ${{github.ref}}
22
21
- name : Release Dry-Run
23
22
if : github.ref != 'refs/heads/master'
24
23
env :
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lambda-edge-azure-auth" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.1.0 " ,
4
4
"description" : " An AWS Cloudfront Lambda@Edge function to authenticate requests using Microsoft Azure." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"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"
10
9
},
11
10
"author" : " Nick Shine" ,
12
11
"repository" : " github:nickshine/lambda-edge-azure-auth" ,
Original file line number Diff line number Diff line change @@ -4,10 +4,17 @@ set -euo pipefail
4
4
5
5
version=${1?" Usage: $0 VERSION" }
6
6
7
+ rm -rf dist
7
8
mkdir -p dist
8
9
9
10
cp ./authz/microsoft.js ./dist/auth.js
10
11
cp ./authn/openid.index.js ./dist/index.js
11
12
cp ./nonce.js ./dist/nonce.js
13
+ cp package.json package-lock.json ./dist/
12
14
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