Skip to content

Commit

Permalink
ci: implement pkg.pr.new (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede authored Aug 28, 2024
1 parent 4df3491 commit ebbc7f4
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: nightly release
on:
push:
branches:
- '**'
tags:
- '!**'
pull_request:
types: [opened, synchronize, labeled, ready_for_review]
branches: [main]
paths-ignore:
- 'docs/**'
- 'test/**'
- 'specs/**'
- 'playground/**'

jobs:
release:
if: ${{ !github.event.pull_request.draft && contains(github.event.pull_request.labels.*.name, 'cr-tracked') }}
runs-on: ubuntu-latest

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

- name: Enable corepack
run: corepack enable

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.18
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Release with pkg-pr-new
run: pnpx pkg-pr-new publish --compact --pnpm
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"npm-run-all2": "^6.2.0",
"nuxt": "^3.12.3",
"ofetch": "^1.3.4",
"pkg-pr-new": "^0.0.20",
"playwright-core": "^1.45.3",
"prettier": "^3.3.2",
"ts-essentials": "^9.4.2",
Expand Down
Loading

0 comments on commit ebbc7f4

Please sign in to comment.