Skip to content

Commit

Permalink
chore: [FOLIO-3] Replace yarn with npm for dependency management
Browse files Browse the repository at this point in the history
  • Loading branch information
YerangPark committed Aug 23, 2024
1 parent 6a215e9 commit 1064e92
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependancies
run: npm install

- name: Build project
run: npm run build

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down Expand Up @@ -45,7 +56,7 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
echo "SSH 연결 테스트 완료"
echo "SSH 연결 테스트 완료."
docker --version
- name: SSH to Deploy Server
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM node:20-alpine
WORKDIR /app

# Copy package.json and yarn.lock files.
COPY package.json yarn.lock ./
COPY package.json package-lock.json ./

# Install dependencies.
RUN yarn install
Expand All @@ -20,4 +20,4 @@ RUN yarn build
EXPOSE 3000

# Start the application.
CMD ["yarn", "start"]
CMD ["npm", "start"]

0 comments on commit 1064e92

Please sign in to comment.