Skip to content

Commit 625dd51

Browse files
chore: publish additional package (#2034)
1 parent f42925f commit 625dd51

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88
inputs:
99
npm-publish:
10-
description: 'Try to publish to NPM'
10+
description: 'Try to publish to npm'
1111
default: false
1212
type: boolean
1313
mcp-publish:
@@ -44,10 +44,22 @@ jobs:
4444
env:
4545
NODE_ENV: 'production'
4646

47-
- name: Publish
47+
- name: Publish chrome-devtools-mcp
4848
run: |
4949
npm publish --provenance --access public
5050
51+
- name: Publish chrome-devtools
52+
run: |
53+
node --input-type=module --eval '
54+
import * as fs from "node:fs/promises";
55+
const json = await fs.readFile("package.json", "utf8");
56+
const pkg = JSON.parse(json);
57+
pkg.name = "chrome-devtools";
58+
await fs.writeFile("package.json", JSON.stringify(pkg, null, 2) + "\n");
59+
'
60+
echo 'This is the **Chrome DevTools for agents** package. Docs: https://github.com/ChromeDevTools/chrome-devtools-mcp' > README.md
61+
npm publish --provenance --access public
62+
5163
publish-to-mcp-registry:
5264
runs-on: ubuntu-latest
5365
needs: publish-to-npm

0 commit comments

Comments
 (0)