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
3
3
on :
4
4
push :
5
5
branches :
6
- - retina # Change to your deployment branch
6
+ - retina # Triggers on every commit to this branch
7
7
paths-ignore :
8
- - ' **.md' # Ignore markdown file updates if necessary
8
+ - ' **.md'
9
9
10
10
jobs :
11
11
deploy :
12
- if : github.event.head_commit.parent_ids # Ensures it's not an empty commit (merge commits have multiple parents)
13
12
runs-on : ubuntu-latest
14
13
15
14
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