Skip to content

test - #38

Closed
drzo wants to merge 145 commits into
drzo/patch-50475from
main
Closed

test#38
drzo wants to merge 145 commits into
drzo/patch-50475from
main

Conversation

@drzo

@drzo drzo commented Jul 18, 2025

Copy link
Copy Markdown

This pull request introduces several significant changes related to deployment workflows, project configuration, and dependency management. Key updates include the addition of new deployment scripts, configuration files for automation tools, and enhancements to issue templates. Below is a categorized summary of the most important changes:

Deployment and Build Enhancements:

  • .cloudflare/build.sh: Added a build script using npm for dependency installation and application build.
  • .cloudflare/pages.json: Configured Cloudflare Pages with build and install commands, output directory, and framework specification.
  • .github/workflows/deploy.yml: Updated the deployment workflow to include staging and production environments, conditional deployment based on event triggers, and improved deployment status notifications.

Automation and CI/CD Improvements:

Dependency and Configuration Updates:

  • .cloudflare/package.json: Defined npm scripts for building the application and specified Node.js version requirements.
  • .cloudflare/package-lock.json: Added a package-lock.json file for locking dependencies and ensuring compatibility with Node.js version >=18.18.0.

Issue Template Enhancements:

drzo and others added 14 commits July 11, 2025 18:37
Revert "Implement Hardware-Optimized Data-Free QAT Framework for Open…
…arn-eca7abf8ab

Bump pbkdf2 from 3.1.2 to 3.1.3 in the npm_and_yarn group across 1 directory
Co-authored-by: dtecho <187844575+dtecho@users.noreply.github.com>
Fix UnoCSS configuration syntax error for Cloudflare Pages deployment
Co-authored-by: dtecho <187844575+dtecho@users.noreply.github.com>
Fix build failure caused by malformed worker file generation
…regenerating pnpm-lock.yaml

Co-authored-by: dtecho <187844575+dtecho@users.noreply.github.com>
Resolve merge conflicts in PR #1 by harmonizing package.json and regenerating pnpm-lock.yaml
…dates

Bumps the npm_and_yarn group with 4 updates in the / directory: [dompurify](https://github.com/cure53/DOMPurify), [pnpm](https://github.com/pnpm/pnpm/tree/HEAD/pnpm), [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `dompurify` from 3.2.3 to 3.2.4
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](cure53/DOMPurify@3.2.3...3.2.4)

Updates `pnpm` from 9.15.3 to 10.0.0
- [Release notes](https://github.com/pnpm/pnpm/releases)
- [Changelog](https://github.com/pnpm/pnpm/blob/main/pnpm/CHANGELOG.md)
- [Commits](https://github.com/pnpm/pnpm/commits/v10.0.0/pnpm)

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

Updates `vitest` from 2.1.8 to 2.1.9
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v2.1.9/packages/vitest)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.2.4
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: pnpm
  dependency-version: 10.0.0
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: vite
  dependency-version: 6.1.6
  dependency-type: direct:development
  dependency-group: npm_and_yarn
- dependency-name: vitest
  dependency-version: 2.1.9
  dependency-type: direct:development
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
…arn-040f094cdb

chore(deps): bump the npm_and_yarn group across 1 directory with 4 updates
@bolt-new-by-stackblitz

Copy link
Copy Markdown

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


# https://github.com/redhat-actions/openshift-tools-installer/blob/main/README.md
- name: Install CRDA CLI
uses: redhat-actions/openshift-tools-installer@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow

Unpinned 3rd party Action 'CRDA Scan' step [Uses Step](1) uses 'redhat-actions/openshift-tools-installer' with ref 'v1', not a pinned commit hash
# process to get a SNYK_TOKEN or a CRDA_KEY
- name: CRDA Scan
id: scan
uses: redhat-actions/crda@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow

Unpinned 3rd party Action 'CRDA Scan' step [Uses Step: scan](1) uses 'redhat-actions/crda' with ref 'v1', not a pinned commit hash
- name: Setup pnpm
# You may pin to the exact commit or the version.
# uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
uses: pnpm/action-setup@v4.0.0

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow

Unpinned 3rd party Action 'Deploy Cloudflare Pages' step [Uses Step](1) uses 'pnpm/action-setup' with ref 'v4.0.0', not a pinned commit hash
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
Comment on lines +13 to +61
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

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{contents: read}}
- name: Setup pnpm
# You may pin to the exact commit or the version.
# uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2
uses: pnpm/action-setup@v4

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow

Unpinned 3rd party Action 'Deploy Cloudflare Pages with Wrangler' step [Uses Step](1) uses 'pnpm/action-setup' with ref 'v4', not a pinned commit hash
@netlify

netlify Bot commented Jul 18, 2025

Copy link
Copy Markdown

Deploy Preview for profound-pika-3e26ee ready!

Name Link
🔨 Latest commit 3c1cabd
🔍 Latest deploy log https://app.netlify.com/projects/profound-pika-3e26ee/deploys/687a0f94d0df390008f2094d
😎 Deploy Preview https://deploy-preview-38--profound-pika-3e26ee.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codesandbox

codesandbox Bot commented Jul 18, 2025

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@dtecho dtecho self-assigned this Jul 18, 2025
@dtecho
dtecho marked this pull request as draft July 18, 2025 08:47

@dtecho dtecho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@dtecho dtecho left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve conflicts

@dtecho dtecho mentioned this pull request Jul 18, 2025
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 18, 2025

Copy link
Copy Markdown

Deploying bolt-echo with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3c1cabd
Status:⚡️  Build in progress...

View logs

Copilot AI and others added 2 commits July 18, 2025 08:59
- Resolved unrelated histories issue by allowing merge
- Kept main branch versions for core application files and configurations
- Applied improved .bolt/prompt formatting from drzo/patch-50475
- Added .tool-versions and functions/[[path]].ts from drzo/patch-50475
- All conflicts resolved while preserving functionality from both branches
Resolve merge conflicts between main and drzo/patch-50475 branches
@dtecho
dtecho deleted the branch drzo/patch-50475 July 18, 2025 09:10
@dtecho dtecho closed this Jul 18, 2025
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.

7 participants