Skip to content

Commit 57e0f3f

Browse files
committed
chore: format
1 parent f2de1b6 commit 57e0f3f

29 files changed

+943
-923
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [ main, master ]
6-
pull_request:
4+
push:
5+
branches: [main, master]
6+
pull_request:
77

88
jobs:
9-
test:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v4
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
1414

15-
- name: Setup pnpm
16-
uses: pnpm/action-setup@v4
17-
with:
18-
version: 9
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
1919

20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: 18
24-
cache: 'pnpm'
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 18
24+
cache: "pnpm"
2525

26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
26+
- name: Install dependencies
27+
run: pnpm install --frozen-lockfile
2828

29-
- name: Run tests
30-
run: pnpm run build && pnpm test
29+
- name: Run tests
30+
run: pnpm run build && pnpm test
Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
11
name: release-please
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
88

99
permissions:
10-
contents: write
11-
pull-requests: write
10+
contents: write
11+
pull-requests: write
1212

1313
jobs:
14-
release:
15-
runs-on: ubuntu-latest
16-
outputs:
17-
releases_created: ${{ steps.release.outputs.releases_created }}
18-
steps:
19-
- name: Release Please
20-
id: release
21-
uses: googleapis/release-please-action@v4
22-
with:
23-
# Use manifest mode with workspace-aware config
24-
config-file: release-please-config.json
25-
manifest-file: .release-please-manifest.json
26-
include-component-in-tag: true
14+
release:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
releases_created: ${{ steps.release.outputs.releases_created }}
18+
steps:
19+
- name: Release Please
20+
id: release
21+
uses: googleapis/release-please-action@v4
22+
with:
23+
# Use manifest mode with workspace-aware config
24+
config-file: release-please-config.json
25+
manifest-file: .release-please-manifest.json
26+
include-component-in-tag: true
2727

28-
publish:
29-
needs: release
30-
if: ${{ needs.release.outputs.releases_created == 'true' }}
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v4
28+
publish:
29+
needs: release
30+
if: ${{ needs.release.outputs.releases_created == 'true' }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
3535

36-
- name: Install pnpm
37-
uses: pnpm/action-setup@v4
38-
with:
39-
version: 9
36+
- name: Install pnpm
37+
uses: pnpm/action-setup@v4
38+
with:
39+
version: 9
4040

41-
- name: Setup Node
42-
uses: actions/setup-node@v4
43-
with:
44-
node-version: '20'
45-
registry-url: 'https://registry.npmjs.org'
46-
cache: 'pnpm'
41+
- name: Setup Node
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: "20"
45+
registry-url: "https://registry.npmjs.org"
46+
cache: "pnpm"
4747

48-
- name: Install dependencies
49-
run: pnpm install --frozen-lockfile
48+
- name: Install dependencies
49+
run: pnpm install --frozen-lockfile
5050

51-
- name: Build all packages
52-
run: pnpm -r build
51+
- name: Build all packages
52+
run: pnpm -r build
5353

54-
- name: Publish changed packages to npm
55-
env:
56-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57-
run: |
58-
set -euo pipefail
59-
echo "Finding unpublished workspace packages..."
60-
filters=""
61-
for pkgjson in packages/*/package.json; do
62-
name=$(jq -r '.name' "$pkgjson")
63-
version=$(jq -r '.version' "$pkgjson")
64-
private=$(jq -r '(.private // false)' "$pkgjson")
65-
if [ "$private" = "true" ]; then
66-
echo "Skipping private package $name"
67-
continue
68-
fi
69-
if npm view "$name@$version" version > /dev/null 2>&1; then
70-
echo "Already published: $name@$version"
71-
else
72-
echo "Will publish: $name@$version"
73-
filters+=" --filter $name"
74-
fi
75-
done
54+
- name: Publish changed packages to npm
55+
env:
56+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57+
run: |
58+
set -euo pipefail
59+
echo "Finding unpublished workspace packages..."
60+
filters=""
61+
for pkgjson in packages/*/package.json; do
62+
name=$(jq -r '.name' "$pkgjson")
63+
version=$(jq -r '.version' "$pkgjson")
64+
private=$(jq -r '(.private // false)' "$pkgjson")
65+
if [ "$private" = "true" ]; then
66+
echo "Skipping private package $name"
67+
continue
68+
fi
69+
if npm view "$name@$version" version > /dev/null 2>&1; then
70+
echo "Already published: $name@$version"
71+
else
72+
echo "Will publish: $name@$version"
73+
filters+=" --filter $name"
74+
fi
75+
done
7676
77-
if [ -z "$filters" ]; then
78-
echo "No unpublished packages detected. Skipping publish."
79-
exit 0
80-
fi
77+
if [ -z "$filters" ]; then
78+
echo "No unpublished packages detected. Skipping publish."
79+
exit 0
80+
fi
8181
82-
# Publish only the unpublished ones in topo order
83-
echo "Publishing: $filters"
84-
pnpm -r $filters publish --access public --no-git-checks
82+
# Publish only the unpublished ones in topo order
83+
echo "Publishing: $filters"
84+
pnpm -r $filters publish --access public --no-git-checks

0 commit comments

Comments
 (0)