Skip to content

Commit

Permalink
feat: initial package release
Browse files Browse the repository at this point in the history
  • Loading branch information
semantic-release-bot authored and nickshine committed Apr 3, 2020
1 parent c538f02 commit addcf15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
node-version: 12
- name: Install dependencies
run: npm ci
- run: echo ${{github.ref}}
- name: Release Dry-Run
if: github.ref != 'refs/heads/master'
env:
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "lambda-edge-azure-auth",
"version": "0.0.1",
"version": "0.1.0",
"description": "An AWS Cloudfront Lambda@Edge function to authenticate requests using Microsoft Azure.",
"main": "index.js",
"scripts": {
"test": "cd tests && npm install && cd .. && node tests/tests.js",
"build": "npm install && cd build && npm install && cd .. && node build/build.js",
"package": ""
"build": "npm install && cd build && npm install && cd .. && node build/build.js"
},
"author": "Nick Shine",
"repository": "github:nickshine/lambda-edge-azure-auth",
Expand Down
9 changes: 8 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@ set -euo pipefail

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

rm -rf dist
mkdir -p dist

cp ./authz/microsoft.js ./dist/auth.js
cp ./authn/openid.index.js ./dist/index.js
cp ./nonce.js ./dist/nonce.js
cp package.json package-lock.json ./dist/

zip -q -j ./dist/lambda-edge-azure-auth-${version}.zip ./dist/*.js
cd dist && npm ci --production;

zip_path="./lambda-edge-azure-auth-${version}.zip"
zip -q -j $zip_path ./{*.js,*.json}
zip -q -r $zip_path ./node_modules
cd -

0 comments on commit addcf15

Please sign in to comment.