@vavt/github-action-test 0.3.0 → 0.4.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.
@@ -56,10 +56,7 @@ jobs:
56
56
  set -euo pipefail
57
57
 
58
58
  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
59
+ printf '%s\n' '<!-- next-release -->' > CHANGELOG.md
63
60
  fi
64
61
 
65
62
  DISPLAY_VERSION="${TAG_NAME#v}"
@@ -96,6 +93,16 @@ jobs:
96
93
  SUBJECT="$(printf '%s' "${SUBJECT}" | sed -E 's/^[[:space:]]+|[[:space:]]+$//g')"
97
94
  [ -z "${SUBJECT}" ] && continue
98
95
 
96
+ # Skip auto-generated changelog commits.
97
+ if printf '%s' "${SUBJECT}" | grep -Eiq '^docs\(changelog\):[[:space:]]*'; then
98
+ continue
99
+ fi
100
+
101
+ # Skip plain version bump commits such as "0.3.0" or "v0.3.0-beta.1".
102
+ if printf '%s' "${SUBJECT}" | grep -Eq '^v?[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$'; then
103
+ continue
104
+ fi
105
+
99
106
  TARGET_FILE="${OTHERS_FILE}"
100
107
  CLEAN_SUBJECT="${SUBJECT}"
101
108
 
@@ -132,14 +139,16 @@ jobs:
132
139
 
133
140
  {
134
141
  printf '## %s (%s)\n\n' "${DISPLAY_VERSION}" "${DATE}"
135
- printf -- '---\n\n'
136
142
  write_section 'Features' "${FEATURES_FILE}"
137
143
  write_section 'Refactors' "${REFACTORS_FILE}"
138
144
  write_section 'Fixed Bugs' "${FIXES_FILE}"
139
145
  write_section 'Others' "${OTHERS_FILE}"
146
+ printf -- '---\n'
140
147
  } > /tmp/release-entry.md
141
148
 
142
- grep -vF "${MARKER}" CHANGELOG.md > /tmp/changelog-base.md || true
149
+ grep -vF "${MARKER}" CHANGELOG.md \
150
+ | sed '/^# Changelog$/d; /^All notable changes to this project will be documented in this file\.$/d' \
151
+ > /tmp/changelog-base.md || true
143
152
 
144
153
  FIRST_SECTION_LINE="$(grep -n '^## ' /tmp/changelog-base.md | head -n1 | cut -d: -f1 || true)"
145
154
 
package/CHANGELOG.md CHANGED
@@ -1,11 +1,24 @@
1
- # Changelog
1
+ ## 0.3.0 (2026-02-28)
2
2
 
3
- All notable changes to this project will be documented in this file.
3
+ ---
4
+
5
+ ### Features
6
+
7
+ - 1 ([628542d](https://github.com/imzbf/github-action-test/commit/628542dd686122cf5c05b2a3d231692087f30861))
8
+
9
+ ### Refactors
4
10
 
11
+ - 2333333333 ([f8ebff7](https://github.com/imzbf/github-action-test/commit/f8ebff719f0b6f9e9c10dd824e8a7d0d326ae5eb))
5
12
 
13
+ ### Fixed Bugs
6
14
 
15
+ - 2222222 ([1b7b249](https://github.com/imzbf/github-action-test/commit/1b7b2499f100e8a8da344d74c51077d208002801))
7
16
 
8
- <!-- next-release -->
17
+ ### Others
18
+
19
+ - 0.3.0 ([886b5ab](https://github.com/imzbf/github-action-test/commit/886b5abf9bcb13dffeab71c54a67bd848cca4401))
20
+ - ci: 更新日志收集方式 ([c546734](https://github.com/imzbf/github-action-test/commit/c5467346c43414c9032149a88c88a5842fb18dbe))
21
+ - docs(changelog): update for v0.2.0 ([b885f00](https://github.com/imzbf/github-action-test/commit/b885f00a683fad0c172bdc1a8ea1445e6c6a91ee))
9
22
 
10
23
  ## 0.2.0 (2026-02-28)
11
24
 
@@ -15,36 +28,26 @@ All notable changes to this project will be documented in this file.
15
28
 
16
29
  <!-- Release notes generated using configuration in .github/release.yml at v0.2.0 -->
17
30
 
18
-
19
31
  ## v0.1.0 (2026-02-28)
20
32
 
21
33
  <!-- Release notes generated using configuration in .github/release.yml at v0.1.0 -->
22
34
 
23
-
24
-
25
35
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.5...v0.1.0
26
36
 
27
37
  ## v0.0.3 (2026-02-28)
28
38
 
29
39
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.3 -->
30
40
 
31
-
32
-
33
41
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.2...v0.0.3
34
42
 
35
43
  ## v0.0.4 (2026-02-28)
36
44
 
37
45
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.4 -->
38
46
 
39
-
40
-
41
47
  **Full Changelog**: https://github.com/imzbf/github-action-test/compare/v0.0.3...v0.0.4
42
48
 
43
49
  ## v0.0.5 (2026-02-28)
44
50
 
45
51
  <!-- Release notes generated using configuration in .github/release.yml at v0.0.5 -->
46
52
 
47
-
48
-
49
53
  **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.4.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, Wor22ld! 022404');
3
3
  };
4
4
 
5
5
  hello();