@vavt/github-action-test 0.3.0 → 0.5.0

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.
@@ -44,6 +44,8 @@ jobs:
44
44
  tag_name: ${{ github.ref_name }}
45
45
  generate_release_notes: true
46
46
  make_latest: true
47
+ body: |
48
+ See full changelog in [`CHANGELOG.md`](https://github.com/${{ github.repository }}/blob/${{ github.event.repository.default_branch }}/CHANGELOG.md).
47
49
  env:
48
50
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49
51
 
@@ -56,10 +58,7 @@ jobs:
56
58
  set -euo pipefail
57
59
 
58
60
  if [ ! -f CHANGELOG.md ]; then
59
- printf '%s\n\n%s\n\n%s\n' \
60
- '# Changelog' \
61
- 'All notable changes to this project will be documented in this file.' \
62
- '<!-- next-release -->' > CHANGELOG.md
61
+ printf '%s\n' '<!-- next-release -->' > CHANGELOG.md
63
62
  fi
64
63
 
65
64
  DISPLAY_VERSION="${TAG_NAME#v}"
@@ -77,11 +76,15 @@ jobs:
77
76
 
78
77
  if [ -n "${PREV_TAG}" ]; then
79
78
  RANGE="${PREV_TAG}..${TAG_NAME}"
79
+ COMPARE_FROM="${PREV_TAG}"
80
80
  else
81
81
  ROOT_COMMIT="$(git rev-list --max-parents=0 "${TAG_NAME}" | tail -n1)"
82
82
  RANGE="${ROOT_COMMIT}..${TAG_NAME}"
83
+ COMPARE_FROM="${ROOT_COMMIT}"
83
84
  fi
84
85
 
86
+ COMPARE_URL="${REPO_URL}/compare/${COMPARE_FROM}...${TAG_NAME}"
87
+
85
88
  FEATURES_FILE='/tmp/changelog-features.md'
86
89
  REFACTORS_FILE='/tmp/changelog-refactors.md'
87
90
  FIXES_FILE='/tmp/changelog-fixed-bugs.md'
@@ -96,6 +99,16 @@ jobs:
96
99
  SUBJECT="$(printf '%s' "${SUBJECT}" | sed -E 's/^[[:space:]]+|[[:space:]]+$//g')"
97
100
  [ -z "${SUBJECT}" ] && continue
98
101
 
102
+ # Skip auto-generated changelog commits.
103
+ if printf '%s' "${SUBJECT}" | grep -Eiq '^docs\(changelog\):[[:space:]]*'; then
104
+ continue
105
+ fi
106
+
107
+ # Skip plain version bump commits such as "0.3.0" or "v0.3.0-beta.1".
108
+ if printf '%s' "${SUBJECT}" | grep -Eq '^v?[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$'; then
109
+ continue
110
+ fi
111
+
99
112
  TARGET_FILE="${OTHERS_FILE}"
100
113
  CLEAN_SUBJECT="${SUBJECT}"
101
114
 
@@ -132,14 +145,17 @@ jobs:
132
145
 
133
146
  {
134
147
  printf '## %s (%s)\n\n' "${DISPLAY_VERSION}" "${DATE}"
135
- printf -- '---\n\n'
136
148
  write_section 'Features' "${FEATURES_FILE}"
137
149
  write_section 'Refactors' "${REFACTORS_FILE}"
138
150
  write_section 'Fixed Bugs' "${FIXES_FILE}"
139
151
  write_section 'Others' "${OTHERS_FILE}"
152
+ printf '**Full Changelog**: [%s...%s](%s)\n\n' "${COMPARE_FROM}" "${TAG_NAME}" "${COMPARE_URL}"
153
+ printf -- '---\n'
140
154
  } > /tmp/release-entry.md
141
155
 
142
- grep -vF "${MARKER}" CHANGELOG.md > /tmp/changelog-base.md || true
156
+ grep -vF "${MARKER}" CHANGELOG.md \
157
+ | sed '/^# Changelog$/d; /^All notable changes to this project will be documented in this file\.$/d' \
158
+ > /tmp/changelog-base.md || true
143
159
 
144
160
  FIRST_SECTION_LINE="$(grep -n '^## ' /tmp/changelog-base.md | head -n1 | cut -d: -f1 || true)"
145
161
 
package/CHANGELOG.md CHANGED
@@ -1,11 +1,47 @@
1
- # Changelog
2
1
 
3
- All notable changes to this project will be documented in this file.
2
+ <!-- next-release -->
4
3
 
4
+ ## 0.4.0 (2026-02-28)
5
5
 
6
+ ### Features
6
7
 
8
+ - 1 ([3d0c750](https://github.com/imzbf/github-action-test/commit/3d0c75081edc8a6238bbfd8c8cdecde87e53f752))
7
9
 
8
- <!-- next-release -->
10
+ ### Refactors
11
+
12
+ - 33333333 ([fe2153a](https://github.com/imzbf/github-action-test/commit/fe2153af62cac3681babd16fd777734f926f5bce))
13
+
14
+ ### Fixed Bugs
15
+
16
+ - 123123123123 ([ad380fe](https://github.com/imzbf/github-action-test/commit/ad380feabda632877594429b9d9e86f5558527c3))
17
+
18
+ ### Others
19
+
20
+ - docs: 123123 ([24cf69b](https://github.com/imzbf/github-action-test/commit/24cf69b730c671cf22c37b29eb25fff123d8a6fd))
21
+
22
+ ---
23
+
24
+ ## 0.3.0 (2026-02-28)
25
+
26
+ ---
27
+
28
+ ### Features
29
+
30
+ - 1 ([628542d](https://github.com/imzbf/github-action-test/commit/628542dd686122cf5c05b2a3d231692087f30861))
31
+
32
+ ### Refactors
33
+
34
+ - 2333333333 ([f8ebff7](https://github.com/imzbf/github-action-test/commit/f8ebff719f0b6f9e9c10dd824e8a7d0d326ae5eb))
35
+
36
+ ### Fixed Bugs
37
+
38
+ - 2222222 ([1b7b249](https://github.com/imzbf/github-action-test/commit/1b7b2499f100e8a8da344d74c51077d208002801))
39
+
40
+ ### Others
41
+
42
+ - 0.3.0 ([886b5ab](https://github.com/imzbf/github-action-test/commit/886b5abf9bcb13dffeab71c54a67bd848cca4401))
43
+ - ci: 更新日志收集方式 ([c546734](https://github.com/imzbf/github-action-test/commit/c5467346c43414c9032149a88c88a5842fb18dbe))
44
+ - docs(changelog): update for v0.2.0 ([b885f00](https://github.com/imzbf/github-action-test/commit/b885f00a683fad0c172bdc1a8ea1445e6c6a91ee))
9
45
 
10
46
  ## 0.2.0 (2026-02-28)
11
47
 
@@ -15,36 +51,26 @@ All notable changes to this project will be documented in this file.
15
51
 
16
52
  <!-- Release notes generated using configuration in .github/release.yml at v0.2.0 -->
17
53
 
18
-
19
54
  ## v0.1.0 (2026-02-28)
20
55
 
21
56
  <!-- Release notes generated using configuration in .github/release.yml at v0.1.0 -->
22
57
 
23
-
24
-
25
58
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.5...v0.1.0
26
59
 
27
60
  ## v0.0.3 (2026-02-28)
28
61
 
29
62
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.3 -->
30
63
 
31
-
32
-
33
64
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.2...v0.0.3
34
65
 
35
66
  ## v0.0.4 (2026-02-28)
36
67
 
37
68
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.4 -->
38
69
 
39
-
40
-
41
70
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.3...v0.0.4
42
71
 
43
72
  ## v0.0.5 (2026-02-28)
44
73
 
45
74
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.5 -->
46
75
 
47
-
48
-
49
76
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.4...v0.0.5
50
-
package/README.md CHANGED
@@ -0,0 +1 @@
1
+ # 111
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vavt/github-action-test",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/src/main.jsx CHANGED
@@ -1,5 +1,5 @@
1
1
  const hello = () => {
2
- console.log('Hello, World! 022404');
2
+ console.log('Hello, ! 022404');
3
3
  };
4
4
 
5
5
  hello();