mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
758 B
28 lines
758 B
4 months ago
|
name: CR
|
||
|
|
||
|
env:
|
||
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches: [main]
|
||
|
types: [opened, synchronize, labeled, ready_for_review]
|
||
|
|
||
|
permissions: {}
|
||
|
|
||
|
jobs:
|
||
|
release:
|
||
|
if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') && !contains(github.event.pull_request.labels.*.name, 'spam') && !contains(github.event.pull_request.labels.*.name, 'invalid') }}
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
- uses: pnpm/action-setup@v3
|
||
|
- uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: 22
|
||
|
cache: pnpm
|
||
|
- run: pnpm install
|
||
|
- run: pnpm build
|
||
|
- run: npx pkg-pr-new publish --compact --no-template --pnpm
|