Skip to content

fix: component name error #13

fix: component name error

fix: component name error #13

Workflow file for this run

name: GitHub Action
on:
push:
branches:
- feat-CICD
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "20.9.0"
- name: Install dependencies
run: npm install
- name: Run build task
run: npm run build
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy to Server
uses: appleboy/[email protected]
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
password: ${{ secrets.REMOTE_PW }}
port: ${{ secrets.REMOTE_PORT }}
key: ${{ secrets.PRIVATE_KEY }}
script: |
cd ${{ secrets.REMOTE_TARGET }}
git pull origin ${{ github.ref }}
npm ci
npm run build
node createFolders.js && node dist/index.js