Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 66a00f9

Browse files
ci: add prereleases to PRs and main commits (#78)
* ci: add prereleases to PRs and main commits * chore: remove tsconfig workspace dependency as it breaks `pnpm pack`
1 parent b022900 commit 66a00f9

File tree

7 files changed

+372
-7
lines changed

7 files changed

+372
-7
lines changed

.github/workflows/prerelease.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish prereleases
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
publish-prerelease:
10+
if: ${{ github.repository_owner == 'flarelabs-net' }}
11+
name: Publish prerelease
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
24+
25+
- name: Install Node.js 22
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: 'pnpm'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Install Dependencies
33+
shell: bash
34+
run: pnpm install --frozen-lockfile
35+
36+
- name: Publish to pkg-pr-new
37+
run: pnpm exec pkg-pr-new publish --pnpm './packages/vite-plugin-cloudflare'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"devDependencies": {
2323
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
24+
"pkg-pr-new": "^0.0.33",
2425
"playwright-chromium": "^1.48.1",
2526
"prettier": "^3.3.3",
2627
"prettier-plugin-packagejson": "^2.5.3",

packages/vite-plugin-cloudflare/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"@cloudflare/workers-shared": "^0.7.0",
2727
"@cloudflare/workers-types": "catalog:default",
2828
"@types/node": "catalog:default",
29-
"@vite-plugin-cloudflare/typescript-config": "workspace:*",
3029
"magic-string": "^0.30.12",
3130
"tsup": "^8.3.0",
3231
"typescript": "catalog:default",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
2+
"extends": "../typescript-config/worker.json",
33
"include": ["src/assets"]
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@vite-plugin-cloudflare/typescript-config/base.json",
2+
"extends": "../typescript-config/base.json",
33
"include": ["src"],
44
"exclude": ["src/runner", "src/assets"]
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
2+
"extends": "../typescript-config/worker.json",
33
"include": ["src/runner"]
44
}

0 commit comments

Comments
 (0)