[feature/projectDetail/button] ํ๋ก์ ํธ ์์ธ์ ๋ณด ํ์ด์ง ์์ /์ญ์ ๋ฒํผ ์ถ๊ฐ #204
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: pull_request | |
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.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: | |
github-token: ${{ github.token }} | |
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.token}} | |
reviewers: ${{vars.reviewers}} |