Context7 Platform -- Up-to-date docs for AI agents
feat: add release workflow and update package.json metadata
Abdusshha16975648947
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..df23df1d--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,54 @@+name: Release++on:+ release:+ types:+ - published++jobs:+ release:+ name: Release+ runs-on:+ group: large-runners+ labels: ubuntu-4x+ steps:+ - name: Checkout Repo+ uses: actions/checkout@v3++ - name: Set env+ run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV++ - name: Setup Node+ uses: actions/setup-node@v3+ with:+ node-version: lts/*++ - name: Setup Bun+ uses: oven-sh/setup-bun@v1+ with:+ bun-version: latest++ - name: Set package version+ run: |+ echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json++ - name: Install Dependencies+ run: bun install++ - name: Build+ run: bun run build++ - name: Set NPM_TOKEN+ run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}++ - name: Publish+ if: !github.event.release.prerelease+ run: |+ npm pkg delete scripts.prepare+ npm publish --access public++ - name: Publish release candidate+ if: github.event.release.prerelease+ run: |+ npm pkg delete scripts.prepare+ npm publish --access public --tag=canary\ No newline at end of filediff --git a/package.json b/package.jsonindex 05c374e3..f6a053b6 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "@upstash/context7-mcp",- "version": "1.0.4",+ "version": "1.0.5","description": "MCP server for Context7","scripts": {"test": "echo \"Error: no test specified\" && exit 1",@@ -12,8 +12,8 @@"type": "git","url": "git+https://github.com/upstash/context7-mcp.git"},- "keywords": [],- "author": "",+ "keywords": ["modelcontextprotocol", "mcp", "context7"],+ "author": "abdush","license": "MIT","type": "module","bin": {