Skip to content

Commit 89909e7

Browse files
committed
chore(release): 1.0.1
1 parent d3baba1 commit 89909e7

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@klocus/opencode-path-instructions",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "OpenCode plugin that injects path-specific *.instructions.md files from .github/instructions and .opencode/instructions",
55
"repository": {
66
"type": "git",

scripts/release.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,8 @@ if [ -n "$(git status --porcelain)" ]; then
3636
exit 1
3737
fi
3838

39-
# Bump version using npm (creates commit + tag)
40-
echo "Running: npm version $BUMP"
41-
if [ "$DRY_RUN" = true ]; then
42-
echo "DRY: npm version $BUMP -m 'chore(release): %s'"
43-
else
44-
npm version "$BUMP" -m "chore(release): %s"
45-
fi
46-
47-
# Build bundle (unless skipped)
39+
# Build bundle first (before creating the version commit+tag) so that a build
40+
# failure doesn't leave behind a dangling commit and tag.
4841
if [ "$SKIP_BUILD" = false ]; then
4942
echo "Building bundle: npm run build:bundle"
5043
if [ "$DRY_RUN" = true ]; then
@@ -54,6 +47,14 @@ if [ "$SKIP_BUILD" = false ]; then
5447
fi
5548
fi
5649

50+
# Bump version using npm (creates commit + tag)
51+
echo "Running: npm version $BUMP"
52+
if [ "$DRY_RUN" = true ]; then
53+
echo "DRY: npm version $BUMP -m 'chore(release): %s'"
54+
else
55+
npm version "$BUMP" -m "chore(release): %s"
56+
fi
57+
5758
# Push commits and tags to origin
5859
echo "Pushing commits and tags to origin"
5960
if [ "$DRY_RUN" = true ]; then

0 commit comments

Comments
 (0)