Skip to content

Create 04.shopping_requirements.md #53

Create 04.shopping_requirements.md

Create 04.shopping_requirements.md #53

Workflow file for this run

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