Skip to content

Commit f4e6a69

Browse files
chore(ci): update publish workflows with scoped install and caching (#4)
1 parent 3b3c61a commit f4e6a69

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

.github/workflows/publish-agent-toolkit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
cache: npm
17+
cache-dependency-path: typescript/package-lock.json
1718

18-
- name: Install workspace deps
19-
run: npm ci --workspaces
19+
- name: Install deps
20+
run: npm ci --prefix typescript
2021

2122
- name: Publish @trysiren/agent-toolkit
22-
run: npm publish --workspace ./typescript --access public
23+
run: cd typescript && npm publish --access public
2324
env:
2425
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish-mcp.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
cache: npm
17+
cache-dependency-path: mcp-server/package-lock.json
1718

18-
- name: Install workspace deps
19-
run: npm ci --workspaces
19+
- name: Install deps
20+
run: npm ci --prefix mcp-server
2021

2122
- name: Publish @trysiren/mcp
22-
run: npm publish --workspace ./mcp-server --access public
23+
run: cd mcp-server && npm publish --access public
2324
env:
2425
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

typescript/package-lock.json

Lines changed: 22 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)