Yhy update 12 #4
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: Test Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
BASE_URL: https://testing.punky.app/api/v1 | |
jobs: | |
build: | |
name: Test build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install # will run `yarn install` command | |
- name: "Create env file" | |
run: | | |
touch .env | |
echo NEXT_PUBLIC_OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }} >> .env | |
echo NEXT_PUBLIC_APP_PLATFORM=telegram >> .env | |
echo NEXT_PUBLIC_API_BASE_URL=${{ env.BASE_URL }} >> .env | |
- name: Build the app | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: build # will run `yarn build` command |