Skip to content

Commit a4dd19d

Browse files
committed
action rework
1 parent ed9039d commit a4dd19d

File tree

4 files changed

+8957
-11
lines changed

4 files changed

+8957
-11
lines changed

.github/workflows/gh-deploy.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@ jobs:
1919
deploy:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v2
23-
24-
- name: Setup Node
25-
uses: actions/setup-node@v1
22+
- uses: actions/checkout@v3
23+
- uses: pnpm/action-setup@v2
24+
with:
25+
version: 8
26+
- uses: actions/setup-node@v3
2627
with:
27-
node-version: '16'
28-
- run: cd ../ && npm ci
29-
- run: npm ci
30-
- run: npm run build
28+
node-version: "16"
29+
cache: "pnpm"
30+
- run: cd ../ && pnpm install
31+
- run: pnpm install
32+
- run: pnpm build
3133
env:
3234
REACT_APP_TELEMETRY_API: https://telemetry-api.ufsolargators.org
3335
REACT_APP_GOOGLE_MAPS_KEY: "${{ vars.REACT_APP_GOOGLE_MAPS_KEY }}"
3436

3537
- name: Upload artifact
3638
uses: actions/upload-pages-artifact@v1
3739
with:
38-
path: './client/build'
40+
path: "./client/build"
3941

4042
- name: Deploy to GitHub Pages
4143
id: deployment

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM node:16-alpine
1+
FROM node:20-slim
22

33
WORKDIR /app
44

55
COPY ./package.json ./package.json
66
COPY ./package-lock.json ./package-lock.json
77

8-
RUN npm ci
8+
RUN pnpm install

0 commit comments

Comments
 (0)