Skip to content

chore: align machine extension response naming #101

chore: align machine extension response naming

chore: align machine extension response naming #101

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: ci-oss-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build all packages
run: npm run build
- name: Verify shebang
run: head -1 packages/daemon-standalone/dist/index.js | grep '#!/usr/bin/env node'
publish:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build all packages
run: npm run build
- name: Bundle web into daemon-standalone
run: npm run bundle:web -w packages/daemon-standalone
- name: Publish @adhdev/daemon-core
if: env.NODE_AUTH_TOKEN != ''
run: cd packages/daemon-core && npm publish --access public || echo '⚠️ daemon-core publish skipped (version may already exist)'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish @adhdev/daemon-standalone
if: env.NODE_AUTH_TOKEN != ''
run: cd packages/daemon-standalone && npm publish --access public || echo '⚠️ daemon-standalone publish skipped (version may already exist)'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}