-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: drzo/patch-50475
Are you sure you want to change the base?
Conversation
|
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
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
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
❌ Deploy Preview for profound-pika-3e26ee failed.
|
…rade dependencies and add migration script for Sass
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
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
No description provided.