Skip to content

[Refactor/#201/project detail/performance2] 검색엔진 였λ₯˜ μˆ˜μ • #283

[Refactor/#201/project detail/performance2] 검색엔진 였λ₯˜ μˆ˜μ •

[Refactor/#201/project detail/performance2] 검색엔진 였λ₯˜ μˆ˜μ • #283

Workflow file for this run

name: deploy
on:
pull_request:
types: [opened, ready_for_review]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Cache node modules
uses: actions/cache@v3
id: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: |
echo 'npm cache existed'
npm ci
- name: lint
run: npm run lint
- name: build
run: npm run build
- name: If build fail
if: ${{ failure() }}
uses: actions/github-script@v6
with:
script: |
const pull_number = ${{ github.event.pull_request.number }}
await github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pull_number,
body: 'λΉŒλ“œμ— μ‹€νŒ¨ν–ˆμŠ΅λ‹ˆλ‹€. Commits νƒ­μ—μ„œ μ—λŸ¬λ₯Ό ν™•μΈν•˜κ³  λ¨Όμ € μˆ˜μ •ν•΄μ£Όμ„Έμš”.',
})
- name: Assign assignee
uses: hkusu/review-assign-action@v1
with:
assignees: ${{ github.actor }}
- name: Assign reviewers randomly
uses: ./.github/actions/reviewers
with:
github_token: ${{secrets.GITHUB_TOKEN}}
reviewers: ${{vars.reviewers}}