Update CDK and Node versions (#5) #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.x" | |
registry-url: https://registry.npmjs.org | |
- name: Install rimraf | |
run: npm i -g rimraf | |
- name: NPM Install for Lambda | |
run: npm install -f ./functions --prefix ./functions | |
- name: NPM Build for Lambda | |
run: npm run --prefix ./functions build:tsc | |
- name: NPM Install | |
run: npm install | |
- name: NPM Build | |
run: npm run build |