mirror of
https://github.com/jheddings/obsidian-stomp.git
synced 2026-07-22 06:44:59 +00:00
Updated release to match Obsidian plugin submission.
This commit is contained in:
parent
2a34e54e86
commit
cc7eeb599c
2 changed files with 11 additions and 13 deletions
15
.github/workflows/release.yaml
vendored
15
.github/workflows/release.yaml
vendored
|
|
@ -4,7 +4,7 @@ run-name: Release ${{ github.ref_name }}
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
|
@ -26,19 +26,14 @@ jobs:
|
|||
- name: Build plugin
|
||||
run: npm run build
|
||||
|
||||
- name: Extract version from tag
|
||||
- name: Get version from tag
|
||||
id: version
|
||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Verify gh CLI and create release
|
||||
id: create_release
|
||||
- name: Create release
|
||||
run: |
|
||||
# Verify gh CLI is available and authenticated
|
||||
gh auth status
|
||||
|
||||
# Create release with auto-generated notes
|
||||
gh release create ${{ github.ref_name }} \
|
||||
--title "obsidian-stomp-${{ steps.version.outputs.VERSION }}" \
|
||||
--title "obsidian-stomp-${{ github.ref_name }}" \
|
||||
--generate-notes --draft \
|
||||
./main.js ./manifest.json ./styles.css
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@
|
|||
"author": "Jason Heddings",
|
||||
"license": "MIT",
|
||||
"main": "main.js",
|
||||
"config": {
|
||||
"tag-version-prefix": ""
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "husky",
|
||||
"dev": "node esbuild.config.mjs",
|
||||
|
|
@ -13,9 +16,9 @@
|
|||
"lint": "eslint --fix .",
|
||||
"test": "npm run build",
|
||||
"preflight": "npm run build && npm test && npm run format && npm run lint",
|
||||
"release": "npm run preflight && git tag v$npm_package_version && git push && git push --tags",
|
||||
"version": "node version.mjs && git add manifest.json versions.json",
|
||||
"postversion": "git commit --amend -m \"obsidian-stomp-$npm_package_version\""
|
||||
"release": "npm run preflight && git push && git push --tags",
|
||||
"version": "node version.mjs && npm run format && git add manifest.json versions.json",
|
||||
"postversion": "git commit --amend -m \"obsidian-stomp-$npm_package_version\" && git tag -f $npm_package_version"
|
||||
},
|
||||
"keywords": [
|
||||
"obsidian",
|
||||
|
|
|
|||
Loading…
Reference in a new issue