File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 16
16
- run : yarn
17
17
- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
18
18
19
+ - name : Fetch tags from git history
20
+ run : git fetch --unshallow --tags
21
+
19
22
- name : Extract version from package.json
20
23
id : package_version
21
24
run : echo "VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV
@@ -26,16 +29,22 @@ jobs:
26
29
VERSION=${{ env.VERSION }}
27
30
echo "Searching for version: $VERSION in CHANGELOG.md"
28
31
29
- CHANGELOG_OUTPUT=$(npx auto- changelog --stdout)
32
+ CHANGELOG_OUTPUT=$(yarn changelog --stdout)
30
33
NOTES=$(echo "$CHANGELOG_OUTPUT" | awk "/\/${VERSION//./\\.} \(/ {print; flag=1; next} /^solidity-utils\// {flag=0} flag")
31
34
35
+ echo "$NOTES"
36
+
32
37
if [ -z "$NOTES" ]; then
33
38
echo "❌ No changelog entry found for version $VERSION"
34
39
echo "Use: yarn changelog"
35
40
exit 1
36
41
fi
37
42
38
- echo "::set-output name=notes::$NOTES"
43
+ {
44
+ echo "notes<<EOF"
45
+ printf "%s\n" "$NOTES"
46
+ echo "EOF"
47
+ } >> "$GITHUB_OUTPUT"
39
48
shell : bash
40
49
41
50
You can’t perform that action at this time.
0 commit comments