gapmiss_inline-callouts/.github/workflows/release.yml
@gapmiss 2e2db6aad4 fix: remove plugin reload, fix all ESLint errors, add release workflow
- Remove disablePlugin/enablePlugin reload method (Scorecard security risk)
- Add eslint-plugin-obsidianmd with typescript-eslint type-checked rules
- Fix 113 ESLint errors across all source files:
  - Replace any types with proper typing
  - Use createSpan/createEl instead of document.createElement
  - Fix floating promises, unused vars, case declarations
  - Shorten command IDs to avoid plugin name duplication
  - Use window.setTimeout instead of bare setTimeout
- Update minAppVersion to 1.4.10 (required by AbstractInputSuggest)
- Update TypeScript to 5.x, ESLint to 9.x
- Add GitHub Actions workflow for releases with artifact attestation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-21 19:22:33 -05:00

49 lines
945 B
YAML

name: Release
on:
push:
tags:
- '*.*.*'
permissions:
contents: write
id-token: write
attestations: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Attest main.js
uses: actions/attest-build-provenance@v2
with:
subject-path: main.js
- name: Attest styles.css
uses: actions/attest-build-provenance@v2
with:
subject-path: styles.css
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
main.js
manifest.json
styles.css
generate_release_notes: true