Skip to content

fix: update version in package.json to 0.12.0-pre-alpha #1

fix: update version in package.json to 0.12.0-pre-alpha

fix: update version in package.json to 0.12.0-pre-alpha #1

Workflow file for this run

# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2026 100monkeys.ai
name: Publish npm
on:
push:
tags:
- '*.*.*'
workflow_dispatch:
inputs:
dry_run:
description: 'Perform a dry run (no actual publishing)'
required: false
type: boolean
default: false
defaults:
run:
working-directory: zaru-mcp-server
permissions:
contents: write
packages: write
jobs:
verify:
name: Verify build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: zaru-mcp-server/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
publish:
name: Publish @100monkeys-ai/zaru-mcp-server
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://npm.pkg.github.com'
scope: '@100monkeys-ai'
cache: 'npm'
cache-dependency-path: zaru-mcp-server/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish package
run: |
if [ "${{ github.event.inputs.dry_run }}" == "true" ]; then
echo "🔍 DRY RUN: Would publish @100monkeys-ai/zaru-mcp-server"
npm publish --dry-run
else
echo "📦 Publishing @100monkeys-ai/zaru-mcp-server to GitHub Packages..."
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Create GitHub Release
needs: publish
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version
id: version
run: |
VERSION="${GITHUB_REF#refs/tags/}"
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
if [[ "${VERSION}" == *"-"* ]]; then
echo "IS_PRERELEASE=true" >> $GITHUB_OUTPUT
else
echo "IS_PRERELEASE=false" >> $GITHUB_OUTPUT
fi
working-directory: .
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.VERSION }}
name: "@100monkeys-ai/zaru-mcp-server ${{ steps.version.outputs.VERSION }}"
draft: false
prerelease: ${{ steps.version.outputs.IS_PRERELEASE == 'true' }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}