Skip to content

Commit

Permalink
fix: migrate db on build & add lint action (#24)
Browse files Browse the repository at this point in the history
* fix: remove migration actions & migrate on build

* build(github): add lint action

* fix: fix typo
  • Loading branch information
aube-dev authored Feb 10, 2023
1 parent 643de27 commit f5e411f
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 57 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ Resolves #(이슈 번호)
- [ ] GitHub Projects에 연결
- [ ] 작업한 사람 모두를 Assign
- [ ] Code Review 요청
- [ ] DB Schema를 바꾼 경우, DB Schema를 바꾸는 다른 PR이 없는지 확인
- [ ] 올라온 PR 중 DB Schema를 바꾸는 PR이 없는지 확인
- [ ] DB Schema를 바꾼 경우, 다른 PR이 없는지 확인
- [ ] `main` 브랜치의 최신 상태를 반영하고 있는지 확인
28 changes: 0 additions & 28 deletions .github/workflows/db-migration-prod.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/db-migration.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Lint'
on: pull_request

jobs:
lint:
runs-on: ubuntu-latest
environment: Preview
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"build": "npx prisma migrate deploy && next build",
"start": "next start",
"lint": "next lint",
"storybook": "start-storybook -p 6006",
Expand Down

1 comment on commit f5e411f

@vercel
Copy link

@vercel vercel bot commented on f5e411f Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./

web-git-main-gdsc-ssu.vercel.app
web-gdsc-ssu.vercel.app
web-xi-liart.vercel.app

Please sign in to comment.