Skip to content

Merge pull request #37 from chainapsis/fix/npm-provenance-repository-url #14

Merge pull request #37 from chainapsis/fix/npm-provenance-repository-url

Merge pull request #37 from chainapsis/fix/npm-provenance-repository-url #14

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
permissions:
contents: read
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build-biometric:
name: Build biometric binary
runs-on: macos-14
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build universal binary
run: |
cd packages/server/native/macos
chmod +x build.sh
./build.sh
- name: Verify architectures
run: lipo -info packages/server/native/macos/bin/BiometricAuth.app/Contents/MacOS/biometric-auth
- name: Upload binary artifact
uses: actions/upload-artifact@v4
with:
name: biometric-darwin
path: packages/server/native/macos/bin/
publish:
name: Publish to npm and create release
needs: build-biometric
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Download biometric binary
uses: actions/download-artifact@v4
with:
name: biometric-darwin
path: packages/server/native/macos/bin/
- name: Install dependencies
run: pnpm install --frozen-lockfile
env:
npm_config_ignore_scripts: true
- name: Build all packages
run: pnpm build
env:
SKIP_API_KEY: ${{ secrets.SKIP_API_KEY }}
- name: Run tests
run: pnpm test
- name: Publish
run: npx zx ./scripts/publish.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO: MCP Registry publish — re-enable when ready
# - name: Install mcp-publisher
# run: |
# VERSION="v1.5.0"
# EXPECTED_SHA="79bbb73ba048c5906034f73ef6286d7763bd53cf368ea0b358fc593ed360cbd5"
# curl -fSL -o mcp-publisher.tar.gz \
# "https://github.com/modelcontextprotocol/registry/releases/download/${VERSION}/mcp-publisher_linux_amd64.tar.gz"
# echo "${EXPECTED_SHA} mcp-publisher.tar.gz" | sha256sum -c -
# tar xzf mcp-publisher.tar.gz mcp-publisher
# sudo mv mcp-publisher /usr/local/bin/
# - name: Login to MCP Registry
# run: mcp-publisher login github-oidc
# - name: Publish to MCP Registry
# run: mcp-publisher publish