mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
* fix(ci): retry npm installs Transient registry and package-download failures should delay a job briefly instead of requiring a manual rerun. Apply one bounded retry policy across CI, deploy, and release workflows. * fix(ci): preserve retries for historical Android tags Manual Android rebuilds may check out releases from before the shared retry script existed. Keep that install step self-contained and allow the shared helper's injected runner to be asynchronous. * fix(ci): preserve retries for desktop release refs * refactor(ci): use shared npm retry helper everywhere
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Deploy Website
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "CHANGELOG.md"
|
|
- "public-docs/**"
|
|
- "packages/website/**"
|
|
- "package.json"
|
|
- "package-lock.json"
|
|
- "patches/**"
|
|
- ".github/workflows/deploy-website.yml"
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
if: ${{ github.event_name != 'release' || (!github.event.release.prerelease && !github.event.release.draft) }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "22"
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: node scripts/npm-retry.mjs ci --workspace=@getpaseo/website --include-workspace-root
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck --workspace=@getpaseo/website
|
|
|
|
- name: Deploy to Cloudflare Workers
|
|
run: npm run deploy --workspace=@getpaseo/website
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|