Make npx work without an npm account, via github: #33
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 Docker image | |
| on: | |
| release: | |
| types: [published] | |
| push: | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: docker/setup-buildx-action@v4 | |
| - uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: meta | |
| uses: docker/metadata-action@v6 | |
| with: | |
| images: ghcr.io/${{ github.repository }} | |
| tags: | | |
| type=semver,pattern={{version}} | |
| type=raw,value=latest | |
| - uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| push: true | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| # Roll the new image across the Link Robins managed-MCP fleet immediately. | |
| # Non-fatal: a missing secret / unreachable host never fails the publish. | |
| - name: Roll out to managed-MCP fleet | |
| run: | | |
| curl -fsS -X POST https://linkrobins.com/hosting/mcp/release-rollout \ | |
| -H "Authorization: Bearer ${{ secrets.MCP_ROLLOUT_TOKEN }}" \ | |
| -H "Content-Type: application/json" \ | |
| -d "{\"version\":\"${{ github.ref_name }}\"}" \ | |
| && echo "fleet rollout triggered" || echo "rollout trigger skipped/failed (non-fatal)" |