Skip to content

Remove unused code

Remove unused code #56

Workflow file for this run

name: Deploy API
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
api:
- 'apps/api/**'
- uses: pnpm/action-setup@v3
if: steps.changes.outputs.api == 'true' && ${{ github.event_name }}" != "workflow_dispatch"
with:
version: 9
- name: Remove types package
run: pnpm uninstall @types/github-script
- name: Deploy
if: steps.changes.outputs.api == 'true' && ${{ github.event_name }}" != "workflow_dispatch"
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
workingDirectory: apps/api
packageManager: pnpm