Skip to content

Commit

Permalink
ci: add pkg.pr.new
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Aug 20, 2024
1 parent bcb3df1 commit 7cdda6b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish Any Commit

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set node ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- run: corepack enable

- name: Install
run: pnpm install

- name: Build
run: pnpm build

- name: Release
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'

0 comments on commit 7cdda6b

Please sign in to comment.