Skip to content

bump version to 0.10.0 #5

bump version to 0.10.0

bump version to 0.10.0 #5

Workflow file for this run

name: Release Obsidian plugin
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npm run build
- name: Read manifest
id: manifest
run: |
{
echo "name=$(jq -r .name manifest.json)"
echo "description=$(jq -r .description manifest.json)"
} >> "$GITHUB_OUTPUT"
- name: Create GitHub release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
TAG: ${{ github.ref_name }}
PLUGIN_NAME: ${{ steps.manifest.outputs.name }}
PLUGIN_DESC: ${{ steps.manifest.outputs.description }}
run: |
GENERATED=$(gh api "repos/$REPO/releases/generate-notes" \
-f tag_name="$TAG" --jq .body)
BODY=$(printf '%s\n\n%s\n' "$PLUGIN_DESC" "$GENERATED")
gh release create "$TAG" \
--title "$PLUGIN_NAME $TAG" \
--notes "$BODY" \
main.js manifest.json styles.css