Skip to content

Commit

Permalink
Merge pull request #134 from softeerbootcamp4th/experimental/monoRepo
Browse files Browse the repository at this point in the history
[refactor] 모노레포 구조로 전환
  • Loading branch information
darkdulgi authored Aug 23, 2024
2 parents aba101f + ac5cb1a commit 5c4b9c0
Show file tree
Hide file tree
Showing 368 changed files with 592 additions and 175 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy_admin_preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy admin preview
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ADMIN_PROJECT_ID }}
on:
push:
branches:
- "dev"
paths:
- "packages/common/**"
- "packages/adminPage/**"
- "public/**"
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: pull code to computer
uses: actions/checkout@v4
- name: install node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: install vercel cli
run: npm install -g vercel
- name: deploy to vercel as preview
run: |
npm install
cd ./packages/adminPage
vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
vercel build --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/deploy_admin_production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy admin preview
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ADMIN_PROJECT_ID }}
on:
push:
branches:
- "main"
paths:
- "packages/common/**"
- "packages/adminPage/**"
- "public/**"
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: pull code to computer
uses: actions/checkout@v4
- name: install node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: install vercel cli
run: npm install -g vercel
- name: deploy to vercel as preview
run: |
npm install
cd ./packages/adminPage
vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
vercel build --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/deploy_preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches:
- "dev"
paths:
- "src/common/**"
- "src/mainPage/**"
- "packages/common/**"
- "packages/mainPage/**"
- "public/**"
jobs:
deploy-preview:
Expand All @@ -24,6 +24,8 @@ jobs:
run: npm install -g vercel
- name: deploy to vercel as preview
run: |
npm install
cd ./packages/mainPage
vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
vercel build --token=${{ secrets.VERCEL_TOKEN }}
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/deploy_production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
branches:
- "main"
paths:
- "src/common/**"
- "src/mainPage/**"
- "packages/common/**"
- "packages/mainPage/**"
- "public/**"
jobs:
deploy-production:
Expand Down
98 changes: 0 additions & 98 deletions build.js

This file was deleted.

107 changes: 84 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5c4b9c0

Please sign in to comment.