@fjell/core 4.4.4 → 4.4.5

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.
@@ -3,8 +3,12 @@ model: gpt-4.1
3
3
  contextDirectories:
4
4
  - .kodrdriv/context
5
5
  commit:
6
+ add: true
6
7
  cached: true
7
8
  sendit: true
8
9
  release:
9
10
  from: main
10
11
  to: HEAD
12
+ publish:
13
+ mergeMethod: squash
14
+ dependencyUpdatePatterns: ["@fjell/*"]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fjell/core",
3
3
  "description": "Core Items for Fjell",
4
- "version": "4.4.4",
4
+ "version": "4.4.5",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/cjs/index.js",
7
7
  "module": "./dist/esm/index.js",
package/release.sh DELETED
@@ -1,103 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
-
5
- echo "Preparing for release: switching from workspace to remote dependencies."
6
- if [ -f "pnpm-workspace.yaml" ]; then
7
- echo "Renaming pnpm-workspace.yaml to prevent workspace-protocol resolution"
8
- mv pnpm-workspace.yaml pnpm-workspace.yaml.bak
9
- else
10
- echo "pnpm-workspace.yaml not found, skipping rename."
11
- fi
12
-
13
- echo "Updating dependencies to latest versions from registry"
14
- pnpm update --latest
15
-
16
- echo "Staging changes for release commit"
17
- git add package.json pnpm-lock.yaml
18
- if [ -f "pnpm-workspace.yaml.bak" ]; then
19
- git add pnpm-workspace.yaml.bak
20
- fi
21
-
22
- echo "Running clean, lint, build, and test..."
23
- pnpm run clean && pnpm run lint && pnpm run build && pnpm run test
24
-
25
- ./commit.sh
26
-
27
- echo "Bumping version..."
28
- pnpm version patch
29
-
30
- echo "Generating release notes..."
31
- pnpm dlx @eldrforge/kodrdriv release > RELEASE_NOTES.md
32
-
33
- echo "Pushing to origin..."
34
- git push --follow-tags
35
-
36
- echo "Creating GitHub pull request..."
37
- PR_URL=$(gh pr create --fill)
38
- PR_NUM=$(echo "$PR_URL" | grep -o '[0-9]*$')
39
- echo "Pull request created: $PR_URL"
40
-
41
- echo "Waiting for PR #$PR_NUM checks to complete..."
42
- while true; do
43
- STATUS=$(gh pr view "$PR_NUM" --json statusCheckRollup -q '.statusCheckRollup.state' | cat || echo "FAILURE")
44
- echo "PR status: $STATUS"
45
- if [[ "$STATUS" == "SUCCESS" ]]; then
46
- echo "All checks passed!"
47
- break
48
- elif [[ "$STATUS" == "FAILURE" || "$STATUS" == "ERROR" ]]; then
49
- echo "PR checks failed."
50
- gh pr checks "$PR_NUM" | cat
51
- exit 1
52
- elif [[ "$STATUS" == "PENDING" ]]; then
53
- echo "Checks are pending... waiting 30 seconds."
54
- sleep 10
55
- else
56
- echo "Unknown PR status: $STATUS. Waiting 30 seconds."
57
- sleep 10
58
- fi
59
- done
60
-
61
- echo "Merging PR #$PR_NUM..."
62
- gh pr merge "$PR_NUM" --merge --delete-branch
63
-
64
- echo "Checking out main branch..."
65
- git checkout main
66
- git pull origin main
67
-
68
- echo "Creating GitHub release..."
69
- TAG_NAME="v$(jq -r .version package.json)"
70
- gh release create "$TAG_NAME" --notes-file RELEASE_NOTES.md
71
-
72
- echo "Creating next release branch..."
73
- CURRENT_VERSION=$(jq -r .version package.json)
74
- IFS='.' read -r -a version_parts <<< "$CURRENT_VERSION"
75
- NEXT_PATCH=$((version_parts[2] + 1))
76
- NEXT_VERSION="${version_parts[0]}.${version_parts[1]}.$NEXT_PATCH"
77
-
78
- echo "Next version is $NEXT_VERSION"
79
- git checkout -b "release/v$NEXT_VERSION"
80
- pnpm version "$NEXT_VERSION" --no-git-tag-version --allow-same-version
81
- git add package.json pnpm-lock.yaml
82
- git commit -m "feat: Start release v$NEXT_VERSION"
83
- git push -u origin "release/v$NEXT_VERSION"
84
-
85
- echo "Restoring workspace configuration"
86
- if [ -f "pnpm-workspace.yaml.bak" ]; then
87
- echo "Restoring pnpm-workspace.yaml"
88
- mv pnpm-workspace.yaml.bak pnpm-workspace.yaml
89
- git add pnpm-workspace.yaml
90
- fi
91
-
92
- echo "Restoring package.json from main branch"
93
- git checkout main -- package.json
94
- git add package.json
95
-
96
- echo "Updating lockfile with workspace dependencies"
97
- pnpm install
98
- git add pnpm-lock.yaml
99
-
100
- git commit -m "chore: Restore workspace configuration for development"
101
- git push
102
-
103
- echo "Release process completed."