Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions .github/workflows/publish-to-pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ name: Publish to pkg.pr.new
permissions: {}

on:
workflow_dispatch:
push:
branches:
- ci/pkg-pr-new
pull_request:
types: [labeled]

Expand All @@ -20,9 +16,7 @@ jobs:
prepare:
if: >-
github.repository == 'voidzero-dev/vite-plus' &&
(github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')))
contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')
name: Compute snapshot version
runs-on: ubuntu-latest
permissions:
Expand All @@ -45,9 +39,7 @@ jobs:
name: Build bindings and binaries
if: >-
github.repository == 'voidzero-dev/vite-plus' &&
(github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')))
contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')
needs: prepare
permissions:
contents: read
Expand All @@ -59,9 +51,7 @@ jobs:
publish:
if: >-
github.repository == 'voidzero-dev/vite-plus' &&
(github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')))
contains(github.event.pull_request.labels.*.name, 'pkg.pr.new')
name: Pkg Preview
runs-on: ubuntu-latest
needs:
Expand Down
13 changes: 13 additions & 0 deletions MAINTENANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Maintenance

## Publishing Preview Packages

Publish to https://pkg.pr.new/~/voidzero-dev/vite-plus

Add the `pkg.pr.new` label to the PR.

Use the commit sha, e.g.:

```sh
pnpm add https://pkg.pr.new/voidzero-dev/vite-plus@sha
```
Loading