Compare commits
2
Commits
faf0470e6a
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
768bcc90e4 | ||
|
|
c57e8dc2fc |
No files matched your search
@@ -73,27 +73,19 @@ jobs:
|
|||||||
build-frontend:
|
build-frontend:
|
||||||
name: Build Yale Access Frontend
|
name: Build Yale Access Frontend
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./packages/frontend
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup PNPM and Node
|
||||||
uses: actions/setup-node@v2
|
uses: pnpm/setup@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
working-directory: packages/frontend
|
||||||
|
runtime: node@22
|
||||||
- name: Setup Yarn
|
|
||||||
run: npm install -g yarn
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: yarn install
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn run build
|
working-directory: ./packages/frontend
|
||||||
|
run: pnpm run build
|
||||||
|
|
||||||
publish-frontend:
|
publish-frontend:
|
||||||
name: Push Yale Access Frontend Docker Image
|
name: Push Yale Access Frontend Docker Image
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ FROM node:lts-alpine as build
|
|||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["package.json", "."]
|
COPY ["package.json", "."]
|
||||||
COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "."]
|
COPY ["pnpm-lock.yaml", "pnpm-workspace.yaml", "."]
|
||||||
|
RUN corepack enable
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
Reference in new issue
Block a user