mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-27 00:52:27 +08:00

Similar to how we do it upstream:
e2c8163b14/utils/publish_all_packages.sh (L97)
Reference: https://docs.npmjs.com/generating-provenance-statements
21 lines
474 B
YAML
21 lines
474 B
YAML
name: Publish
|
|
on:
|
|
release:
|
|
types: [published]
|
|
jobs:
|
|
publish-npm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
registry-url: https://registry.npmjs.org/
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- run: npm run lint
|
|
- run: npm run test
|
|
- run: npm publish --provenance
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|