Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename package and update description for clarity #4

Open
wants to merge 87 commits into
base: drzo/patch-50475
Choose a base branch
from

Conversation

drzo
Copy link

@drzo drzo commented Jan 13, 2025

No description provided.

Copy link

stackblitz bot commented Jan 13, 2025

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment on lines +19 to +65
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: |
npm install
npm install -g wrangler

- name: List Workers
if: github.event.inputs.action == 'list'
run: wrangler workers list
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

- name: Deploy to Production
if: github.event.inputs.action == 'deploy-production'
run: |
npm run build
wrangler deploy --env production
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

- name: Deploy to Staging
if: github.event.inputs.action == 'deploy-staging'
run: |
npm run build
wrangler deploy --env staging
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

- name: Cleanup Workers
if: github.event.inputs.action == 'cleanup'
run: |
npm install @cloudflare/workers-sdk tsx --save-dev
npx tsx scripts/cleanup-workers.ts
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +14 to +36
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.GH_PAT }} # Need this for pushing updates

- name: Git Submodule Update
run: |
git submodule update --init --recursive
git submodule update --remote --merge

- name: Commit Updates
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git diff-index --quiet HEAD || git commit -m "chore: update submodules"

- name: Push Updates
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Comment on lines +12 to +60
name: Deploy Pages and Worker
runs-on: ubuntu-latest

env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

steps:
# Step 1: Checkout Repository
- name: Checkout Repository
uses: actions/checkout@v4

# Step 2: Set Up Node.js
- name: Set Up Node.js
uses: actions/setup-node@v4
# with:
# node-version: 18

- name: Setup pnpm
# You may pin to the exact commit or the version.
# uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
uses: pnpm/action-setup@v4
# with:
# Version of pnpm to install
# version: # optional
# Where to store pnpm files
# dest: # optional, default is ~/setup-pnpm
# If specified, run `pnpm install`
# run_install: # optional, default is null
# File path to the package.json to read "packageManager" configuration
# package_json_file: # optional, default is package.json
# When set to true, @pnpm/exe, which is a Node.js bundled package, will be installed, enabling using pnpm without Node.js.
# standalone: # optional, default is false


# Step 3: Install Dependencies
- name: Install Dependencies
run: pnpm install -g wrangler && pnpm install --no-frozen-lockfile

# Step 4: Build Project
- name: Build Project
run: pnpm run build

# Step 5: Deploy to Pages
- name: Deploy to Cloudflare Pages
# run: wrangler pages deploy ./build/client
run: npx wrangler pages deploy ./build/client

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for profound-pika-3e26ee failed.

Name Link
🔨 Latest commit 7db1350
🔍 Latest deploy log https://app.netlify.com/sites/profound-pika-3e26ee/deploys/67ac073857df8b000896b0c0

Copy link

cloudflare-workers-and-pages bot commented Jan 13, 2025

Deploying bolt-echo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7db1350
Status:🚫  Build failed.

View logs

dependabot bot and others added 2 commits January 21, 2025 22:38
Bumps the npm_and_yarn group with 1 update in the / directory: [undici](https://github.com/nodejs/undici).


Updates `undici` from 5.28.4 to 5.28.5
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.28.4...v5.28.5)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
…rn-2c579f9325

Bump undici from 5.28.4 to 5.28.5 in the npm_and_yarn group across 1 directory
dependabot bot and others added 2 commits January 27, 2025 14:45
Bumps the npm_and_yarn group with 1 update in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 5.4.11 to 5.4.12
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.12/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
…rn-f25c717a0f

Bump vite from 5.4.11 to 5.4.12 in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `vite` from 5.4.12 to 6.0.11
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.0.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <[email protected]>
…rn-1bde0d632d

Bump vite from 5.4.12 to 6.0.11 in the npm_and_yarn group across 1 directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants