Skip to content

Commit

Permalink
forgot I use pnpm on local
Browse files Browse the repository at this point in the history
  • Loading branch information
WillQizza committed Dec 19, 2023
1 parent 118d8c8 commit 1f5cdf3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17,297 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20.0.0'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install npm dependencies
run: npm install
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Upload Build
uses: actions/upload-pages-artifact@v2
with:
Expand Down
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
FROM node:20.0.0 AS source
WORKDIR /app
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

WORKDIR /app
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY pnpm-lock.yaml .
RUN pnpm install --frozen-lockfile

COPY src ./src
COPY public ./public
COPY tsconfig.json .
RUN npm run build
RUN pnpm run build

FROM nginx:1.25.2
WORKDIR /usr/share/nginx/html
Expand Down
Loading

0 comments on commit 1f5cdf3

Please sign in to comment.