Skip to content

Commit

Permalink
Bump Node version to 14 and update packages (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
apgrucza authored Jul 30, 2021
1 parent 30ef2cc commit 18b00ac
Show file tree
Hide file tree
Showing 9 changed files with 3,974 additions and 1,013 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [14.x, 16.x]

steps:
- uses: actions/checkout@v2
Expand Down
42 changes: 9 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ jobs:
name: Upload Release Assets
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v2
- name: Get variables
id: get_variables
run: echo "::set-output name=tag_name::${GITHUB_REF#refs/tags/}"
- name: Use Node.js 10.x
uses: actions/setup-node@v1

- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: '10.x'
node-version: '14'

- name: Run tests
run: npm run-script test-ci
Expand All @@ -30,31 +29,8 @@ jobs:
run: npm run-script build-ci rotate_key_pair

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_variables.outputs.tag_name }}
release_name: ${{ steps.get_variables.outputs.tag_name }}
draft: false
prerelease: false

- name: Upload okta_native
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distributions/okta_native/okta_native.zip
asset_name: okta_native_${{ steps.get_variables.outputs.tag_name }}.zip
asset_content_type: application/zip
- name: Upload rotate_key_pair
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./distributions/rotate_key_pair/rotate_key_pair.zip
asset_name: rotate_key_pair_${{ steps.get_variables.outputs.tag_name }}.zip
asset_content_type: application/zip
files: |
./distributions/okta_native/okta_native.zip
./distributions/rotate_key_pair/rotate_key_pair.zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ If deploying a generic package, you also need to follow the steps below in the `
1. Execute `./build.sh rotate_key_pair`
1. Create a Lambda rotation function with the following configuration:
* Function code: Use the `rotate_key_pair.zip` file found in the distributions folder
* Runtime: **Node.js 10.x** or later
* Runtime: **Node.js 14.x** or later
* Handler: `index.handler`
* Timeout: 30 sec
1. Modify the role on the Lambda rotation function to include a policy that:
Expand Down
Loading

0 comments on commit 18b00ac

Please sign in to comment.