Skip to content

Commit

Permalink
chore: stop contiuous deployment with cloudflare workers
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundhung committed Feb 10, 2024
1 parent 78c4f3d commit 4ec7464
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Development Workflow
name: CI
on:
- push
jobs:
Expand All @@ -11,7 +11,7 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
Expand All @@ -41,29 +41,3 @@ jobs:
run: npx prettier --check .
- name: ✅ Code linting
run: npx eslint . --ext .js,.mjs,.ts,.tsx

deploy:
name: 🛳 Deploying
needs: [test, lint]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/[email protected]
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 📦 Build the worker
run: npm run build
- name: 🔥 Publish
run: npx wrangler publish
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}

0 comments on commit 4ec7464

Please sign in to comment.