aaronsb_obsidian-mcp-plugin/.github/workflows/feature-release.yml
Aaron Bockelie fc47349e18 chore(deps): upgrade dev toolchain — eslint 10, typescript 6, and grouped bumps
Incorporates the open dependabot dev-dependency PRs as one coherent, tightly
verified upgrade rather than five separate rebase/CI cycles, since they interact
across the build/lint toolchain:

- eslint 9.39.2 → 10.5.0 and @eslint/js 9.39.2 → 10.0.1 (#235 + #236 — these are
  coupled: @eslint/js@10 peer-requires eslint@10, so #236 could only ever resolve
  alongside #235; neither lands alone)
- typescript 5.9.3 → 6.0.3 (#237)
- typescript-eslint / @typescript-eslint/utils 8.60.1 → 8.62.0, esbuild
  0.28.0 → 0.28.1, globals 17.6.0 → 17.7.0, obsidian 1.13.0 → 1.13.1 (#246,
  which also subsumes the standalone esbuild bump in #233)
- actions/checkout v6 → v7 across all workflows (#240)

TypeScript 6 turns two tsconfig deprecations into errors. Fixed by modernizing
the config, not suppressing — Obsidian's community-plugin source review forbids
`ignoreDeprecations`-style escape hatches and rewards tight configs:

- dropped `baseUrl: "."` (TS5101) — unused; every local import is relative
- `moduleResolution: "node"` → `"bundler"` (TS5107) — the correct modern value
  for an esbuild-bundled project with extensionless imports (node16/nodenext
  would force `.js` extensions and break every relative import)

Also ran `npm audit fix` (security fixes are hold-exempt) clearing two dev/test
transitive advisories (@babel/core file-read, js-yaml merge-key DoS) that were
pre-existing on main via the jest/istanbul chain — `npm audit` now reports 0.

Verified tight: `npm run build && npm run lint && npm test` all green, 352/352
tests pass, no rule suppressions added.
2026-07-03 21:13:32 -05:00

77 lines
No EOL
2.4 KiB
YAML

name: Feature Branch Pre-Release
on:
workflow_dispatch:
inputs:
release_type:
description: 'Release type'
required: true
default: 'alpha'
type: choice
options:
- alpha
- beta
- rc
permissions:
contents: write
jobs:
pre-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build plugin
run: npm run build
- name: Get version and branch info
id: version
run: |
VERSION=$(jq -r '.version' manifest.json)
BRANCH=$(echo ${GITHUB_REF#refs/heads/})
SAFE_BRANCH=$(echo $BRANCH | sed 's/[^a-zA-Z0-9-]/-/g')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
echo "safe_branch=$SAFE_BRANCH" >> $GITHUB_OUTPUT
echo "tag=v${VERSION}-${SAFE_BRANCH}-${{ inputs.release_type }}" >> $GITHUB_OUTPUT
- name: Create Pre-Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ steps.version.outputs.tag }}" \
--title "Pre-Release: v${{ steps.version.outputs.version }} (${{ steps.version.outputs.branch }})" \
--notes "## Pre-Release Build from \`${{ steps.version.outputs.branch }}\`
**⚠️ This is a pre-release build and may contain bugs.**
### Installation via BRAT
1. Install the BRAT plugin if you haven't already
2. Command palette → \"BRAT: Add a beta plugin for testing\"
3. Enter: \`aaronsb/obsidian-mcp-plugin\`
4. Enable the plugin in Community Plugins
### Changes in this branch
See the [branch comparison](https://github.com/${{ github.repository }}/compare/main...${{ steps.version.outputs.branch }}) for changes.
### Type: ${{ inputs.release_type }}
- **alpha**: Early development build, expect bugs
- **beta**: Feature complete but needs testing
- **rc**: Release candidate, final testing phase" \
--prerelease \
--target "${{ steps.version.outputs.branch }}" \
main.js \
manifest.json \
styles.css