dev to prod #1352
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 server | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [develop, main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js 20... | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install yarn... | |
run: npm install -g yarn | |
- name: Install dependencies... | |
run: yarn install:all | |
- name: Build server | |
run: yarn build:server |