-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: stop contiuous deployment with cloudflare workers
- Loading branch information
1 parent
78c4f3d
commit 4ec7464
Showing
1 changed file
with
3 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Development Workflow | ||
name: CI | ||
on: | ||
- push | ||
jobs: | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 }} |