Skip to content
Open
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
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
name: CI

on:
pull_request:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
smoke:
name: Smoke (${{ matrix.os }})
name: Smoke (${{ matrix.os }}, Node ${{ matrix.node-version }})
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node-version:
- 24
include:
- os: ubuntu-latest
node-version: 22.19.0

env:
DEVSPACE_ALLOWED_ROOTS: ${{ github.workspace }}
Expand All @@ -25,12 +34,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 22
node-version: ${{ matrix.node-version }}
cache: npm

- name: Install dependencies
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Release

on:
push:
tags:
- v*

permissions:
contents: read
id-token: write

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
publish:
name: Publish to npm
runs-on: ubuntu-latest
if: github.repository == 'Waishnav/devspace'

steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
Comment thread
coderabbitai[bot] marked this conversation as resolved.
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org
package-manager-cache: false

- name: Ensure tag is on main
run: |
git fetch origin main:refs/remotes/origin/main --depth=1
git merge-base --is-ancestor "$GITHUB_SHA" origin/main

- name: Verify tag matches package version
run: |
package_version="$(node -p "require('./package.json').version")"
tag_version="${GITHUB_REF_NAME#v}"

if [ "$package_version" != "$tag_version" ]; then
echo "Tag v${tag_version} does not match package.json version ${package_version}."
exit 1
fi

- name: Install dependencies
run: npm ci

- name: Typecheck
run: npm run typecheck

- name: Test
run: npm test

- name: Build
run: npm run build

- name: Check package contents
run: npm pack --dry-run

- name: Publish
run: npm publish
4 changes: 4 additions & 0 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"name": "@waishnav/devspace",
"version": "1.0.3",
"description": "Expose a secure local coding workspace through an MCP server.",
"repository": {
"type": "git",
"url": "git+https://github.com/Waishnav/devspace.git"
},
"type": "module",
"main": "dist/server.js",
"engines": {
Expand Down
Loading