Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,25 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: cd ../ && npm ci
- run: npm ci
- run: npm run build
node-version: "16"
cache: "pnpm"
- run: cd ../ && pnpm install
- run: pnpm install
- run: pnpm build
env:
REACT_APP_TELEMETRY_API: https://telemetry-api.ufsolargators.org
REACT_APP_GOOGLE_MAPS_KEY: "${{ vars.REACT_APP_GOOGLE_MAPS_KEY }}"

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './client/build'
path: "./client/build"

- name: Deploy to GitHub Pages
id: deployment
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Prettier Formatting Check

on:
pull_request:
branches: [main]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
persist-credentials: false

- name: Prettify code
uses: creyD/prettier_action@v4.3
with:
dry: True
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:16-alpine
FROM node:20-slim

WORKDIR /app

COPY ./package.json ./package.json
COPY ./package-lock.json ./package-lock.json

RUN npm ci
RUN pnpm install
Loading
Loading