expo-release 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -540,9 +540,9 @@ Composite actions for Bun monorepos, used as `HansKristoffer/expo-release/.githu
|
|
|
540
540
|
|
|
541
541
|
| Action | Does |
|
|
542
542
|
|--------|------|
|
|
543
|
-
| `setup-workspace` | Bun (version from `package.json` `packageManager` by default), optional Node, restore the dependency cache keyed on `bun.lock`, always `bun install --frozen-lockfile`, save on a miss with `save-cache: 'true'`. `cache-paths` and `cache-key-files` are inputs. |
|
|
544
|
-
| `playwright-browsers` | Restores browsers for the installed Playwright version; installs and saves on a miss. |
|
|
545
|
-
| `pr-preview` | Railway preview environment per PR with its own PlanetScale Postgres branch and a Cloudflare-managed host. Creates on open/sync, deletes on close. |
|
|
543
|
+
| `setup-workspace` | Bun (version from `package.json` `packageManager` by default), optional Node, restore the dependency cache keyed on `bun.lock`, always `bun install --frozen-lockfile`, save on a miss with `save-cache: 'true'`. `cache-paths` and `cache-key-files` are inputs. On a self-hosted runner it keeps `cache-paths` instead (see below). |
|
|
544
|
+
| `playwright-browsers` | Restores browsers for the installed Playwright version; installs and saves on a miss. A self-hosted runner skips the cache and keeps `~/.cache/ms-playwright`. |
|
|
545
|
+
| `pr-preview` | Railway preview environment per PR with its own PlanetScale Postgres branch and a Cloudflare-managed host. Creates on open/sync, deletes on close. The Railway CLI goes into the job's `$RUNNER_TEMP`. |
|
|
546
546
|
| `ai-changelog` | Plain-language changelog of a pushed range with Claude; outputs `message` (chat) and `markdown`, optionally POSTs the message to a webhook. |
|
|
547
547
|
|
|
548
548
|
### Warm the caches on main
|
|
@@ -580,6 +580,29 @@ jobs:
|
|
|
580
580
|
|
|
581
581
|
Use the same `cache-paths` in every job, since they are part of the cache version.
|
|
582
582
|
|
|
583
|
+
### Self-hosted runners
|
|
584
|
+
|
|
585
|
+
A self-hosted runner keeps its workspace between jobs, so these actions keep what a hosted VM would restore. Check out with `clean: false`; `setup-workspace` then removes every untracked file except `cache-paths` and `keep-paths`, skips the cache, and skips `bun install` when the files named by `install-key-paths` and the Bun version are unchanged since that runner's last install. Add the files a postinstall reads:
|
|
586
|
+
|
|
587
|
+
```yaml
|
|
588
|
+
- uses: actions/checkout@v5
|
|
589
|
+
with:
|
|
590
|
+
clean: false
|
|
591
|
+
- uses: HansKristoffer/expo-release/.github/actions/setup-workspace@v2
|
|
592
|
+
with:
|
|
593
|
+
cache-paths: |
|
|
594
|
+
node_modules
|
|
595
|
+
packages/*/node_modules
|
|
596
|
+
apps/*/node_modules
|
|
597
|
+
packages/prisma/generated
|
|
598
|
+
keep-paths: .buncargo/typecheck-timings.json
|
|
599
|
+
install-key-paths: |
|
|
600
|
+
bun.lock
|
|
601
|
+
*package.json
|
|
602
|
+
patches
|
|
603
|
+
packages/prisma/schema
|
|
604
|
+
```
|
|
605
|
+
|
|
583
606
|
### PR preview environments
|
|
584
607
|
|
|
585
608
|
The preview duplicates `railway-source-environment` (default `staging`) into `pr-<number>`, points git-connected services at the PR branch, sets `DATABASE_URL` and `DATABASE_URL_DIRECT` to a fresh PlanetScale branch, attaches `pr-<number>.<zone>` with Cloudflare DNS, then sets `BASE_URL`, which triggers the one deployment (run migrations and seeds in your pre-deploy step).
|