-
-
Notifications
You must be signed in to change notification settings - Fork 362
feat: monorepo(bun -> pnpm) #631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 42 commits
3b338e4
eaf533f
f283e22
317649f
0ecb135
14e5b73
0edcc11
2e4369e
2ddccd7
42c7b5c
b42af61
202bb2e
41cac3d
d3fd06d
f09a0e1
0ba822a
0d1de50
ec53f1a
fbe3e85
e8bcf67
f733f07
3582034
90d6ba6
ce7dc19
9ee73d3
7c216e0
1f82c90
f24b5b2
0abb0a0
a49956f
e3f6561
7713965
deeb744
9997825
29586a0
b90c88f
5fdc23b
57d585f
1798438
2d13165
bdacc38
d808d87
22a936e
bdb13a7
ccb13f9
ea772d1
6c80156
21e682e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,10 @@ name: npm publish | |||||||||||||||||||||||
| on: | ||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||
| tags: | ||||||||||||||||||||||||
| - '*' | ||||||||||||||||||||||||
| - "*" | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||
| PACKAGE_DIR: packages/ccusage | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||
| npm: | ||||||||||||||||||||||||
|
|
@@ -16,14 +19,14 @@ jobs: | |||||||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||||
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||||||||||||||||||||||||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||||||||||||||||||||||||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| registry-url: 'https://registry.npmjs.org' | ||||||||||||||||||||||||
| registry-url: "https://registry.npmjs.org" | ||||||||||||||||||||||||
| node-version: lts/* | ||||||||||||||||||||||||
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | ||||||||||||||||||||||||
| - run: npm install -g npm@latest | ||||||||||||||||||||||||
| - run: bun install --frozen-lockfile | ||||||||||||||||||||||||
| - run: npm publish --provenance --no-git-checks --access public | ||||||||||||||||||||||||
| - run: pnpm install --frozen-lockfile | ||||||||||||||||||||||||
| - run: pnpm --filter='./packages/**' publish --provenance --no-git-checks --access public | ||||||||||||||||||||||||
| working-directory: ${{env.PACKAGE_DIR}} | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Comment on lines
+29
to
31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Publishing likely to fail: missing npm auth token; filter + working-directory conflict.
Option A (publish the single package from its dir): - - run: pnpm --filter='./packages/**' publish --provenance --no-git-checks --access public
- working-directory: ${{env.PACKAGE_DIR}}
+ - run: pnpm publish --provenance --no-git-checks --access public
+ working-directory: ${{env.PACKAGE_DIR}}
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}Option B (multi publish from root): - - run: pnpm --filter='./packages/**' publish --provenance --no-git-checks --access public
- working-directory: ${{env.PACKAGE_DIR}}
+ - run: pnpm --filter='./packages/**' publish --provenance --no-git-checks --access public
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}📝 Committable suggestion
Suggested change
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| release: | ||||||||||||||||||||||||
|
|
@@ -37,8 +40,6 @@ jobs: | |||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||||
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | ||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| bun-version: latest | ||||||||||||||||||||||||
| - run: bun x changelogithub@13.16.0 | ||||||||||||||||||||||||
| - run: bunx changelogithub@13.16.0 | ||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,4 +38,3 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json | |
| # lsmcp cache | ||
| .lsmcp/cache | ||
|
|
||
| AGENTS.md | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| CLAUDE.md |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| packages/ccusage/LICENSE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Schema generation will fail without Bun; the generator script requires Bun.
Re‑add Bun setup before running
pnpm run generate:schema, or port the script to Node first.- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - run: pnpm install --frozen-lockfile + - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 - name: Generate schema files run: pnpm run generate:schema working-directory: packages/ccusage📝 Committable suggestion
🤖 Prompt for AI Agents