Remote-MCP Server
by ssut
- .github
- workflows
name: 🚀 Publish
on:
release:
types: [created]
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version:
- 22.x
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v4
name: Use Node.js ${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Check lint
run: pnpm biome ci
publish-npm:
runs-on: ubuntu-24.04
environment: production
needs: test
permissions:
contents: read
id-token: write
packages: write
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Install Dependencies
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: Build
run: pnpm build
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
@remote-rcp:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 🐙 Publish
run: |
pnpm publish-packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}