Skip to content

Commit

Permalink
Merge pull request #95 from adrienZ/feature/pkg-pr-new
Browse files Browse the repository at this point in the history
feature: pkg-pr-new
  • Loading branch information
xiaoluoboding authored Oct 20, 2024
2 parents 7527014 + 8b22b94 commit 8fb6f62
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pkg-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish commit with pkr-pr-new

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

jobs:
build:
runs-on: ubuntu-latest

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

- name: Enable Corepack
run: corepack enable pnpm

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

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build:lib

- name: Publish
run: pnpx pkg-pr-new publish

0 comments on commit 8fb6f62

Please sign in to comment.