Skip to content

Bump all packages to 0.1.10 #13

Bump all packages to 0.1.10

Bump all packages to 0.1.10 #13

Workflow file for this run

name: Publish Packages
on:
push:
tags:
- 'v*'
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
id-token: write # Required for npm provenance attestation
jobs:
validate:
name: Validate & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- name: Pre-publish validation
run: node scripts/prepublish-check.mjs
publish:
name: Publish to npm
needs: validate
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # npm provenance (OIDC attestation)
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Upgrade npm for OIDC Trusted Publishing
run: npm install -g npm@latest && npm --version
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Publish @code-rag/core
working-directory: packages/core
run: |
TARBALL=$(pnpm pack | tail -1)
npm publish "$TARBALL" --provenance --access public
- name: Publish @code-rag/mcp-server
working-directory: packages/mcp-server
run: |
TARBALL=$(pnpm pack | tail -1)
npm publish "$TARBALL" --provenance --access public
- name: Publish @code-rag/api-server
working-directory: packages/api-server
run: |
TARBALL=$(pnpm pack | tail -1)
npm publish "$TARBALL" --provenance --access public
- name: Publish @code-rag/cli
working-directory: packages/cli
run: |
TARBALL=$(pnpm pack | tail -1)
npm publish "$TARBALL" --provenance --access public