Skip to content

fix: update node version and streamline pnpm setup in release workflow #31

fix: update node version and streamline pnpm setup in release workflow

fix: update node version and streamline pnpm setup in release workflow #31

Workflow file for this run

name: Build obsidian plugin
on:
push:
tags:
- "*"
env:
PLUGIN_NAME: obsidian-fountain-editor
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: pnpm/action-setup@v4
with:
run_install: false
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--generate-notes \
build/main.js build/manifest.json build/styles.css