Skip to content

Commit

Permalink
ci: continuous release
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 22, 2024
1 parent 3df241f commit 802b0f8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release-continuous.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Any Commit
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

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

- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2
- run: corepack enable

- name: Set node
uses: actions/setup-node@v4
Expand Down

0 comments on commit 802b0f8

Please sign in to comment.