Skip to content

Commit

Permalink
Add pkg.pr.new (#139)
Browse files Browse the repository at this point in the history
* Add pkg.pr.new

* Use `pnpm`, add lockfile

Please don't delete this, and also install using `pnpm` from now on

* Maybe we don't need corepack?

* Install `pnpm` without corepack
  • Loading branch information
longnguyen2004 authored Jan 24, 2025
1 parent e7090a5 commit f679531
Show file tree
Hide file tree
Showing 3 changed files with 1,309 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish_prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish pkg.pr.new
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpx pkg-pr-new publish
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@types/fluent-ffmpeg": "^2.1.27",
"@types/node": "^20.17.1",
"@types/ws": "^8.5.12",
"pkg-pr-new": "^0.0.39",
"typed-emitter": "^2.1.0",
"typescript": "^5.6.3"
},
Expand Down
Loading

0 comments on commit f679531

Please sign in to comment.