Skip to content

Commit ca41b92

Browse files
committed
workflow: set up continuous release with pkg.pr.new
1 parent 9de1d10 commit ca41b92

File tree

2 files changed

+27
-42
lines changed

2 files changed

+27
-42
lines changed

Diff for: .github/workflows/ci.yml

+27
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- '**'
6+
tags:
7+
- '!**'
68
pull_request:
79
branches:
810
- main
@@ -12,3 +14,28 @@ jobs:
1214
test:
1315
if: ${{ ! startsWith(github.event.head_commit.message, 'release:') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) }}
1416
uses: ./.github/workflows/test.yml
17+
18+
continuous-release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Install Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version-file: '.node-version'
31+
registry-url: 'https://registry.npmjs.org'
32+
cache: 'pnpm'
33+
34+
- name: Install deps
35+
run: pnpm install
36+
37+
- name: Build
38+
run: pnpm build --withTypes
39+
40+
- name: Release
41+
run: pnpx pkg-pr-new publish --compact --pnpm './packages/*'

Diff for: .github/workflows/upload-packages.yml

-42
This file was deleted.

0 commit comments

Comments
 (0)