Skip to content

Commit

Permalink
ci: add pkg-pr-new (#520)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
  • Loading branch information
zhiyuanzmj and posva authored Oct 20, 2024
1 parent 1884818 commit 997106f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish Any Commit

on:
pull_request:
branches: main
paths-ignore:
- 'docs/**'
- 'playground/**'
- 'examples/**'

push:
branches:
- '**'
tags:
- '!**'
paths-ignore:
- 'docs/**'
- 'playground/**'
- 'examples/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Release
run: pnpm dlx pkg-pr-new publish --compact --pnpm

0 comments on commit 997106f

Please sign in to comment.