Add lambda endpoints env vars for astrosite #3
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
on: | |
pull_request_target: | |
branches: ["main", "staging"] | |
env: | |
NODE_VERSION: "20.x" | |
permissions: | |
contents: read | |
jobs: | |
test-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: "0" | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "npm" | |
- name: Build to make sure data is OK | |
run: | | |
# Set up yarn | |
yarn install | |
# Build | |
yarn build:public |