Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,54 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for PR message extraction

- uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Get PR Message
id: pr_message
run: |
PR_NUMBER=$(git log -1 --pretty=%B | grep -oP '#\K\d+' || echo "")
if [ ! -z "$PR_NUMBER" ]; then
PR_MESSAGE=$(gh pr view $PR_NUMBER --json body -q .body || echo "")
echo "message<<EOF" >> $GITHUB_OUTPUT
echo "$PR_MESSAGE" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
else
echo "message=No PR message found" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: npm ci
- run: npm install -g tsx
- run: npm run build # Add build step here too
- uses: JS-DevTools/npm-publish@v3
- run: npm run build

- name: Publish to NPM
id: publish
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Get package version
if: steps.publish.outputs.type != 'none'
id: package_version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT

- name: Create GitHub Release
if: steps.publish.outputs.type != 'none'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.NPM_TOKEN }}
tag_name: v${{ steps.package_version.outputs.version }}
release_name: Release v${{ steps.package_version.outputs.version }}
body: |
${{ steps.pr_message.outputs.message }}

Package published to npm: ${{ steps.publish.outputs.version }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema } from "@modelcontextprot
const server = new Server(
{
name: "task-manager-server",
version: "1.0.8"
version: "1.0.9"
},
{
capabilities: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "taskqueue-mcp",
"version": "1.0.8",
"version": "1.0.9",
"description": "Task Queue MCP Server",
"author": "Christopher C. Smith ([email protected])",
"main": "dist/index.js",
Expand Down