docs: update README for Guard v0.8, MCP registry count (6,600+) #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JS Package | |
| on: | |
| push: | |
| paths: ["js/**"] | |
| branches: [main] | |
| pull_request: | |
| paths: ["js/**"] | |
| defaults: | |
| run: | |
| working-directory: js | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: js/package-lock.json | |
| - run: npm ci | |
| - run: npm run typecheck | |
| - run: npm run build | |
| - run: npm test | |
| publish: | |
| needs: test | |
| if: startsWith(github.ref, 'refs/tags/js-v') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm publish --provenance --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |