Skip to content

Commit

Permalink
chore: Add pkg-pr-new
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Oct 20, 2024
1 parent cd293ee commit 4f1928a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/pkg-pr-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pkg-pr-new
on: [pull_request]

jobs:
publish:
runs-on: ubuntu-latest

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

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- run: npx pkg-pr-new publish --comment=update
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@
"limit": "7.0 kB",
"path": "./dist/index.js"
}
]
],
"packageManager": "npm@10.9.0+sha256.c12def16fe3efdc80b1e652d60903d807ac4b78b9e7c3e76f633f4b13a32897c"
}

0 comments on commit 4f1928a

Please sign in to comment.