Skip to content

changes

changes #12

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
- development
jobs:
deploy_to_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install dependencies
run: |
npm install -g pnpm
pnpm init-project
- name: Lint
run: pnpm run lint
- name: Build
run: pnpm build
# SSH Deployment Steps
- name: Set up SSH Agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Execute Remote Commands
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.HOST }} << EOF
eval "$(ssh-agent -s)"
cd ./plugin/figma-plugin-sample
git fetch --all
git checkout development
git reset --hard origin/development
git pull origin development
node -v
EOF