Skip to content

Commit

Permalink
ci: add prereleases to PRs and main commits (#78)
Browse files Browse the repository at this point in the history
* ci: add prereleases to PRs and main commits

* chore: remove tsconfig workspace dependency as it breaks `pnpm pack`
  • Loading branch information
petebacondarwin authored Nov 27, 2024
1 parent b022900 commit 66a00f9
Show file tree
Hide file tree
Showing 7 changed files with 372 additions and 7 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish prereleases

on:
push:
branches: [main]
pull_request:

jobs:
publish-prerelease:
if: ${{ github.repository_owner == 'flarelabs-net' }}
name: Publish prerelease
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Publish to pkg-pr-new
run: pnpm exec pkg-pr-new publish --pnpm './packages/vite-plugin-cloudflare'
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"pkg-pr-new": "^0.0.33",
"playwright-chromium": "^1.48.1",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.3",
Expand Down
1 change: 0 additions & 1 deletion packages/vite-plugin-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@cloudflare/workers-shared": "^0.7.0",
"@cloudflare/workers-types": "catalog:default",
"@types/node": "catalog:default",
"@vite-plugin-cloudflare/typescript-config": "workspace:*",
"magic-string": "^0.30.12",
"tsup": "^8.3.0",
"typescript": "catalog:default",
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.assets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
"extends": "../typescript-config/worker.json",
"include": ["src/assets"]
}
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@vite-plugin-cloudflare/typescript-config/base.json",
"extends": "../typescript-config/base.json",
"include": ["src"],
"exclude": ["src/runner", "src/assets"]
}
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/tsconfig.runner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "@vite-plugin-cloudflare/typescript-config/worker.json",
"extends": "../typescript-config/worker.json",
"include": ["src/runner"]
}
Loading

0 comments on commit 66a00f9

Please sign in to comment.