[Remove] CheckoutButton.js 삭제 #38
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: Node.js CI | |
on: | |
push: | |
branches: | |
- main # main 브랜치에 푸시될 때 실행 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 # 최신 버전 사용 | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v4 # 최신 버전 사용 | |
with: | |
node-version: '20.16.0' | |
cache: 'npm' | |
- name: Check Node.js version | |
run: node -v | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
run: npm test | |
- name: Build project | |
run: npm run build | |
- name: Configure Git | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
- name: Deploy the project | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/pu2rile/Intern-IN-Meta.git | |
npm run deploy |