Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add pkg.pr.new #17314

Merged
merged 21 commits into from
Jun 11, 2024
32 changes: 32 additions & 0 deletions .github/workflows/cr.yml
bluwy marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Any Commit
on:
push:
branches:
- main
- v6/environment-api
pull_request_review:
types: [submitted]

jobs:
build:
if: github.event_name == 'push' || github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- run: corepack enable
bluwy marked this conversation as resolved.
Show resolved Hide resolved
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish --compact --pnpm
working-directory: ./packages/vite
1 change: 1 addition & 0 deletions packages/vite/src/types/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"//": "this file is just here to make pnpm happy with --frozen-lockfile",
"name": "dep-types",
AmirSa12 marked this conversation as resolved.
Show resolved Hide resolved
"version": "0.0.0"
}
1 change: 1 addition & 0 deletions packages/vite/types/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"//": "this file is here to make typescript happy when moduleResolution=node16+",
"name": "types",
AmirSa12 marked this conversation as resolved.
Show resolved Hide resolved
"version": "0.0.0"
}
Loading