Skip to content

Commit addcf15

Browse files
semantic-release-botnickshine
authored andcommitted
feat: initial package release
1 parent c538f02 commit addcf15

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
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:

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
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",

package.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ set -euo pipefail
44

55
version=${1?"Usage: $0 VERSION"}
66

7+
rm -rf dist
78
mkdir -p dist
89

910
cp ./authz/microsoft.js ./dist/auth.js
1011
cp ./authn/openid.index.js ./dist/index.js
1112
cp ./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 -

0 commit comments

Comments
 (0)