obsidian-dev-skills 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,6 +104,8 @@ jobs:
104
104
  runs-on: ubuntu-latest
105
105
  steps:
106
106
  - uses: actions/checkout@v4
107
+ with:
108
+ fetch-depth: 0
107
109
  - uses: pnpm/action-setup@v4
108
110
  - uses: actions/setup-node@v4
109
111
  with:
@@ -123,9 +125,17 @@ jobs:
123
125
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124
126
  VERSION: ${{ steps.version.outputs.version }}
125
127
  run: |
128
+ COMMIT_NOTES=$(git log -1 --pretty=format:%B)
129
+ PREV_TAG=$(git tag --sort=-creatordate --merged HEAD | grep -v "^${VERSION}$" | head -n 1 || true)
130
+ if [ -n "$PREV_TAG" ]; then
131
+ COMPARE="**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/compare/${PREV_TAG}...${VERSION}"
132
+ else
133
+ COMPARE="**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/commits/${VERSION}"
134
+ fi
135
+ NOTES=$(printf "%s\n\n---\n\n%s\n" "$COMMIT_NOTES" "$COMPARE")
126
136
  gh release create "$VERSION" \
127
137
  --title="$VERSION" \
128
- --generate-notes \
138
+ --notes "$NOTES" \
129
139
  main.js styles.css manifest.json
130
140
  ```
131
141
 
@@ -43,6 +43,8 @@ jobs:
43
43
  runs-on: ubuntu-latest
44
44
  steps:
45
45
  - uses: actions/checkout@v4
46
+ with:
47
+ fetch-depth: 0
46
48
  - uses: pnpm/action-setup@v4
47
49
  - uses: actions/setup-node@v4
48
50
  with:
@@ -65,15 +67,25 @@ jobs:
65
67
  if gh release view "$VERSION" >/dev/null 2>&1; then
66
68
  gh release upload "$VERSION" main.js styles.css manifest.json --clobber
67
69
  else
70
+ COMMIT_NOTES=$(git log -1 --pretty=format:%B)
71
+ PREV_TAG=$(git tag --sort=-creatordate --merged HEAD | grep -v "^${VERSION}$" | head -n 1 || true)
72
+ if [ -n "$PREV_TAG" ]; then
73
+ COMPARE="**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/compare/${PREV_TAG}...${VERSION}"
74
+ else
75
+ COMPARE="**Full Changelog**: https://github.com/${GITHUB_REPOSITORY}/commits/${VERSION}"
76
+ fi
77
+ NOTES=$(printf "%s\n\n---\n\n%s\n" "$COMMIT_NOTES" "$COMPARE")
68
78
  gh release create "$VERSION" \
69
79
  --title="$VERSION" \
70
- --generate-notes \
80
+ --notes "$NOTES" \
71
81
  main.js styles.css manifest.json
72
82
  fi
73
83
  ```
74
84
 
75
85
  **Why read the version from `manifest.json`**: the workflow runs from either a tag push (where `github.ref_name` is the tag) or a `workflow_dispatch` from a branch (where `github.ref_name` is the branch name, e.g. `master`). Using `github.ref_name` directly would title a manually-triggered release after the branch. Reading from `manifest.json` is consistent across both triggers and matches what Obsidian's plugin loader actually reads.
76
86
 
87
+ **Why build the release notes manually instead of `--generate-notes`**: `--generate-notes` produces an auto-changelog headed by a "What's Changed" PR list and a "Full Changelog" compare link. For plugins maintained by a single person without a PR workflow, that auto-generated body is usually just the compare link with no context. Reading the latest commit message gives the reader the actual "what changed and why" up front. The compare link is still appended underneath for the full diff. `fetch-depth: 0` is required so `git tag --merged HEAD` has the tag history to find the previous version.
88
+
77
89
  Cut releases by pushing a tag (`git tag 0.1.0 && git push origin 0.1.0`). The workflow attaches the three required assets and registers the attestation. The scorecard's "Build verified" signal also fires once the workflow has run, because the attested artifacts can be reproduced byte-for-byte from source.
78
90
 
79
91
  For the full set of scorecard signals and their fixes, see [scorecard-compliance.md](scorecard-compliance.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "obsidian-dev-skills",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Agent skills for Obsidian plugin and theme development, including community scorecard compliance, release workflow attestation, and dependency vulnerability hygiene.",
5
5
  "keywords": [
6
6
  "obsidian",