@ankhorage/devtools 1.15.8 → 1.15.9
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.
- package/README.md +1 -1
- package/dist/tools/workflows/files/release.yml +23 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# @ankhorage/devtools
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects
|
|
9
9
|
|
|
@@ -46,6 +46,11 @@ jobs:
|
|
|
46
46
|
fetch-depth: 0
|
|
47
47
|
token: ${{ steps.release-token.outputs.token }}
|
|
48
48
|
|
|
49
|
+
- name: Synchronize latest main
|
|
50
|
+
run: |
|
|
51
|
+
git fetch origin main
|
|
52
|
+
git checkout -B main origin/main
|
|
53
|
+
|
|
49
54
|
- name: Setup Bun
|
|
50
55
|
uses: oven-sh/setup-bun@v2
|
|
51
56
|
with:
|
|
@@ -75,23 +80,32 @@ jobs:
|
|
|
75
80
|
id: release
|
|
76
81
|
if: hashFiles('.changeset/config.json') != ''
|
|
77
82
|
run: |
|
|
78
|
-
git fetch origin main
|
|
79
|
-
git checkout -B main origin/main
|
|
80
|
-
|
|
81
83
|
if [ -z "$(find .changeset -maxdepth 1 -type f -name '*.md' ! -name README.md -print -quit)" ]; then
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
current_version="$(node -p "require('./package.json').version")"
|
|
85
|
+
release_sha=""
|
|
86
|
+
for candidate_sha in $(git rev-list HEAD); do
|
|
87
|
+
candidate_subject="$(git show -s --format=%s "$candidate_sha")"
|
|
88
|
+
if [ "$candidate_subject" != "chore(release): version packages [skip ci]" ]; then
|
|
89
|
+
continue
|
|
90
|
+
fi
|
|
91
|
+
candidate_version="$(git show "${candidate_sha}:package.json" | node -e "let s=''; process.stdin.on('data',(d)=>s+=d); process.stdin.on('end',()=>process.stdout.write(JSON.parse(s).version ?? ''))")"
|
|
92
|
+
if [ "$candidate_version" = "$current_version" ]; then
|
|
93
|
+
release_sha="$candidate_sha"
|
|
94
|
+
break
|
|
95
|
+
fi
|
|
96
|
+
done
|
|
97
|
+
|
|
98
|
+
if [ -n "$release_sha" ]; then
|
|
99
|
+
echo "Recovering canonical release commit $release_sha for version $current_version without another version bump."
|
|
85
100
|
echo "versioned=true" >> "$GITHUB_OUTPUT"
|
|
86
101
|
echo "package_name=$(node -p "require('./package.json').name")" >> "$GITHUB_OUTPUT"
|
|
87
|
-
echo "package_version=$
|
|
88
|
-
echo "release_sha=$
|
|
102
|
+
echo "package_version=$current_version" >> "$GITHUB_OUTPUT"
|
|
103
|
+
echo "release_sha=$release_sha" >> "$GITHUB_OUTPUT"
|
|
89
104
|
else
|
|
90
105
|
echo "versioned=false" >> "$GITHUB_OUTPUT"
|
|
91
106
|
fi
|
|
92
107
|
exit 0
|
|
93
108
|
fi
|
|
94
|
-
|
|
95
109
|
before_version="$(node -p "require('./package.json').version")"
|
|
96
110
|
__ANKH_CHANGESETS_VERSION_COMMAND__
|
|
97
111
|
if node -e "const p=require('./package.json'); process.exit(p.ankh?.apm === undefined ? 1 : 0)"; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/devtools",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.9",
|
|
4
4
|
"description": "Shared tooling, repository automation, runtime policies, and agent standards for Ankhorage TypeScript projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/devtools#readme",
|