File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ name: Deploy to Render
33on :
44 push :
55 branches :
6- - retina # Change to your deployment branch
6+ - retina # Triggers on every commit to this branch
77 paths-ignore :
8- - ' **.md' # Ignore markdown file updates if necessary
8+ - ' **.md'
99
1010jobs :
1111 deploy :
12- if : github.event.head_commit.parent_ids # Ensures it's not an empty commit (merge commits have multiple parents)
1312 runs-on : ubuntu-latest
1413
1514 steps :
Original file line number Diff line number Diff line change 1+ FROM node:18-alpine
2+
3+ WORKDIR /app
4+ COPY package.json package-lock.json ./
5+ # Remove problematic dependencies and force a fresh install
6+ RUN rm -rf node_modules package-lock.json && \
7+ npm cache clean --force && \
8+ npm install --force
9+
10+ CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments