feat(nav): namespace filter → cluster scope zone + view-aware (SKY-10… #40
Workflow file for this run
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: Publish @skyhook-io/radar-app | |
| # Radar's source imports deep paths from @skyhook-io/k8s-ui | |
| # (./types/*, ./utils/*, ./components/gitops/*, ./components/timeline/*, | |
| # ./components/resources/renderers/*, and ./components/checks/* — the Checks | |
| # queue, shipped in k8s-ui v1.7.3). Publish a matching k8s-ui version FIRST | |
| # before tagging a radar-app release — peer dep resolves to '>=1.7.3', so the | |
| # ChecksView/NavCustomization exports must already be on the registry. | |
| on: | |
| push: | |
| tags: | |
| - 'radar-app-v*.*.*' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| publish: | |
| name: Publish to npm | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: web | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Get version from tag | |
| id: version | |
| run: echo "version=${GITHUB_REF_NAME#radar-app-v}" >> "$GITHUB_OUTPUT" | |
| - name: Set package version | |
| run: npm version "${{ steps.version.outputs.version }}" --no-git-tag-version --allow-same-version | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Publish | |
| run: npm publish --provenance --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |