-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (61 loc) · 1.92 KB
/
build.yml
File metadata and controls
67 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build and publish
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
tags:
- "*"
jobs:
# Tests already passed before tag was created, so just build and deploy
deploy:
runs-on: ubuntu-latest
name: "Build and publish to npm"
permissions:
contents: write
id-token: write
steps:
- name: Check out
uses: actions/checkout@v6
with:
fetch-depth: 0
filter: blob:none
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
id: install_code
run: bun i
- name: Check plugin wiring
run: bun run check:wiring
- name: Build
id: build_code
run: bun run build
- name: Generate AI changelog
id: changelog
uses: mistricky/ccc@v0.2.6
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
model: claude-sonnet-4-5-20250929
- uses: js-devtools/npm-publish@v4
if: ${{ !contains(github.ref, '-alpha.') }}
with:
token: ${{ secrets.NPM_TOKEN }}
provenance: true
- uses: js-devtools/npm-publish@v4
if: ${{ contains(github.ref, '-alpha.') }}
with:
token: ${{ secrets.NPM_TOKEN }}
tag: next
provenance: true
- name: Create GitHub release
id: create_release
uses: softprops/action-gh-release@v2
with:
body: |
## 🆕 Changelog
${{ steps.changelog.outputs.result }}
---
🔗 **Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ steps.changelog.outputs.from_tag }}...${{ steps.changelog.outputs.to_tag }}
make_latest: true
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}'
prerelease: ${{ contains(github.ref, '-alpha.') }}