Skip to content

fix: manifest version #16

fix: manifest version

fix: manifest version #16

Workflow file for this run

name: Release Obsidian plugin
on:
push:
tags:
- "*"
permissions:
contents: write
env:
PLUGIN_NAME: obsidian-favorite-note
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build plugin
id: build
run: |
npm install
npm run build
mkdir ${{ env.PLUGIN_NAME }}
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
zip -r "${{ env.PLUGIN_NAME }}-$(git tag --sort version:refname | tail -n 1).zip" ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip
main.js
styles.css
manifest.json