Skip to content

Commit ca82bdc

Browse files
committed
ci: Add Buddy Pipeline
1 parent 12604f9 commit ca82bdc

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/buddy.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright 2015 Shuai Zhang
2+
# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception
3+
4+
name: Buddy Release
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
env:
15+
NODE_VERSION: 24.x
16+
17+
jobs:
18+
release:
19+
name: Package & Publish
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v5
24+
25+
- name: Set up PNPM
26+
uses: pnpm/action-setup@v4
27+
with:
28+
version: 10.22.0
29+
run_install: false
30+
31+
- name: Set up Node.js
32+
uses: actions/setup-node@v6
33+
with:
34+
node-version: ${{ env.NODE_VERSION }}
35+
cache: pnpm
36+
cache-dependency-path: pnpm-lock.yaml
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: Lint
42+
run: pnpm lint
43+
44+
- name: Typecheck
45+
run: pnpm typecheck
46+
47+
- name: Test
48+
run: pnpm test
49+
50+
- name: Build
51+
run: pnpm build
52+
53+
- name: Publish to GitHub Packages
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
set -euo pipefail
58+
pnpm publish --registry https://npm.pkg.github.com --access public --no-git-checks

0 commit comments

Comments
 (0)