Skip to content

Commit

Permalink
Add pkg.pr.new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 6, 2024
1 parent c4b9886 commit d978f50
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish with pkg.pr.new

on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

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: 22

- run: npx pkg-pr-new publish
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
name: ${{ matrix.os }} (Node v${{ matrix.node }})

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: |
Expand Down

0 comments on commit d978f50

Please sign in to comment.