mirror of
https://github.com/edems-dev/md-discord-syntax.git
synced 2026-07-22 08:37:37 +00:00
- Changed plugin ID to md-discord-syntax across manifests, validation, package metadata, and release instructions. - Resolved TypeScript unsafe-value warnings through correct typed ESLint configuration and source typing. - Replaced flagged document.createElement usage with Obsidian createEl. - Addressed text-decoration compatibility warnings. - Optimized spoiler detection to inspect only relevant document lines instead of allocating the full document text. - Updated tests for strict type safety and promise handling.
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
name: Release Obsidian Plugin
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
- "[0-9]*.[0-9]*.[0-9]*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
attestations: write
|
|
artifact-metadata: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: "npm"
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build, test & validate
|
|
run: |
|
|
npm run build
|
|
npm run lint
|
|
npm run typecheck
|
|
npm run test
|
|
npm run validate
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
generate_release_notes: true
|
|
body: |
|
|
Obsidian plugin release for Discord Syntax.
|
|
|
|
Plugin ID: md-discord-syntax
|
|
|
|
Install by copying main.js, manifest.json, and styles.css into .obsidian/plugins/md-discord-syntax/.
|
|
files: |
|
|
packages/obsidian/main.js
|
|
packages/obsidian/manifest.json
|
|
packages/obsidian/styles.css
|
|
|
|
- name: Attest main.js provenance
|
|
uses: actions/attest@v4
|
|
with:
|
|
subject-path: packages/obsidian/main.js
|
|
|
|
- name: Attest styles.css provenance
|
|
uses: actions/attest@v4
|
|
with:
|
|
subject-path: packages/obsidian/styles.css
|