Skip to content

Merge pull request #151 from zhinjs/changeset-release/main #14

Merge pull request #151 from zhinjs/changeset-release/main

Merge pull request #151 from zhinjs/changeset-release/main #14

Workflow file for this run

name: Deploy to Demo
on:
push:
branches:
- main
jobs:
deploy:
runs-on: self-hosted
steps:
- name: checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install dependencies
run: pnpm install
env:
GITHUB_AUTH_TOKEN: ${{secrets.PERSONAL_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Deploy
run: |
echo "Deploying to demo..."
pm2 delete zhin
pm2 start --name zhin npm -- run dev
echo "Deployed to demo"