Skip to content

feat: rename project from ark-watcher to ark-ssh-connector in configu… #1

feat: rename project from ark-watcher to ark-ssh-connector in configu…

feat: rename project from ark-watcher to ark-ssh-connector in configu… #1

Workflow file for this run

name: CI/CD
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: workers-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Type-check and build
run: npm run ci
deploy:
name: Deploy Worker
runs-on: ubuntu-latest
needs: ci
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v4
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
packageManager: npm
command: deploy