declapract-typescript-ehmpathy 0.47.1 → 0.47.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.
@@ -36,6 +36,7 @@ runs:
36
36
  env:
37
37
  GITHUB_TOKEN: ${{ inputs.github-token }}
38
38
  run: |
39
+ set -euo pipefail
39
40
  COMMIT_MSG="${{ inputs.commit-message }}"
40
41
  REPO_URL="https://github.com/${{ inputs.repository }}"
41
42
 
@@ -85,14 +86,14 @@ runs:
85
86
  echo " └── ✨ release created: $RELEASE_URL"
86
87
 
87
88
  # comment on the release pr
88
- gh pr comment "$PR_NUMBER" --body "released at ${RELEASE_URL}"
89
+ gh pr comment "$PR_NUMBER" --body "🐢 released at ${RELEASE_URL}"
89
90
 
90
91
  # extract pr links from the release pr body and comment on each
91
92
  PR_BODY=$(gh pr view "$PR_NUMBER" --json body --jq '.body')
92
- REFERENCED_PRS=$(echo "$PR_BODY" | grep -oE '\[#[0-9]+\]\([^)]+/pull/([0-9]+)\)' | grep -oE '[0-9]+' || true)
93
+ REFERENCED_PRS=$(echo "$PR_BODY" | grep -oE '/pull/[0-9]+' | grep -oE '[0-9]+' | sort -u || true)
93
94
 
94
95
  for REF_PR in $REFERENCED_PRS; do
95
- gh pr comment "$REF_PR" --body "released at ${RELEASE_URL}" 2>/dev/null || true
96
+ gh pr comment "$REF_PR" --body "🐢 released at ${RELEASE_URL}" 2>/dev/null || true
96
97
  done
97
98
 
98
99
  echo "🌊 cutta tag complete"
@@ -114,6 +115,7 @@ runs:
114
115
  if: ${{ steps.cutta.outputs.did-cutta == 'false' }}
115
116
  shell: bash
116
117
  run: |
118
+ set -euo pipefail
117
119
  echo "🔭 crunch semver"
118
120
 
119
121
  # helper: compare semver (returns 0 if $1 > $2, 1 otherwise)
@@ -203,6 +205,7 @@ runs:
203
205
  if: ${{ steps.cutta.outputs.did-cutta == 'false' }}
204
206
  shell: bash
205
207
  run: |
208
+ set -euo pipefail
206
209
  echo "🔭 crunch changelog"
207
210
  REPO_URL="https://github.com/${{ inputs.repository }}"
208
211
  PREV_TAG="${{ steps.semver.outputs.current-tag }}"
@@ -236,7 +239,7 @@ runs:
236
239
  COMMIT_MESSAGE="${REST#* }"
237
240
  SHORT_HASH="${HASH:0:7}"
238
241
  # extract pr number from message if present
239
- PR_NUM=$(echo "$COMMIT_MESSAGE" | grep -oE '\(#[0-9]+\)' | head -1 | tr -d '(#)')
242
+ PR_NUM=$(echo "$COMMIT_MESSAGE" | grep -oE '\(#[0-9]+\)' | head -1 | tr -d '(#)' || true)
240
243
  echo "  ○ ${COMMIT_MESSAGE}"
241
244
  if [ -n "$PR_NUM" ]; then
242
245
  echo "     ├── ${DATE}"
@@ -279,6 +282,7 @@ runs:
279
282
  env:
280
283
  GITHUB_TOKEN: ${{ inputs.github-token }}
281
284
  run: |
285
+ set -euo pipefail
282
286
  echo "🔭 upsert release pr"
283
287
  NEXT_VERSION="${{ steps.semver.outputs.next-version }}"
284
288
  CHANGELOG=$(cat "${{ steps.changelog.outputs.changelog-file }}")
@@ -298,7 +302,7 @@ runs:
298
302
 
299
303
  # build pr body in temp file to avoid yaml parsing issues
300
304
  PR_BODY_FILE="/tmp/pr-body.md"
301
- echo "noice! ready to let these changes ride?" > "$PR_BODY_FILE"
305
+ echo "🐢 noice! ready to let these changes ride?" > "$PR_BODY_FILE"
302
306
  echo "---" >> "$PR_BODY_FILE"
303
307
  echo "" >> "$PR_BODY_FILE"
304
308
  cat "${{ steps.changelog.outputs.changelog-file }}" >> "$PR_BODY_FILE"
@@ -411,6 +415,7 @@ runs:
411
415
  if: always()
412
416
  shell: bash
413
417
  run: |
418
+ set -euo pipefail
414
419
  if [ "${{ steps.cutta.outputs.did-cutta }}" = "true" ]; then
415
420
  echo "action=${{ steps.cutta.outputs.action }}" >> $GITHUB_OUTPUT
416
421
  echo "version=${{ steps.cutta.outputs.version }}" >> $GITHUB_OUTPUT
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "declapract-typescript-ehmpathy",
3
3
  "author": "ehmpathy",
4
4
  "description": "declapract best practices declarations for typescript",
5
- "version": "0.47.1",
5
+ "version": "0.47.3",
6
6
  "license": "MIT",
7
7
  "main": "src/index.js",
8
8
  "repository": "ehmpathy/declapract-typescript-ehmpathy",