File tree Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Expand file tree Collapse file tree 2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -63,22 +63,28 @@ jobs:
63
63
pnpm run build:stable
64
64
fi
65
65
66
- - name : Get Next Version
67
- id : semantic
68
- env :
69
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66
+ - name : Get Package Version
67
+ id : package_version
70
68
run : |
71
- pnpm add -D semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/npm
72
- OUTPUT=$(unset GITHUB_ACTIONS && npx semantic-release --dry-run --no-ci)
73
- VERSION=$(echo "$OUTPUT" | grep -o "The next release version is [0-9]*\.[0-9]*\.[0-9]*" | awk '{print $6}')
69
+ VERSION=$(node -p "require('./package.json').version")
74
70
if [[ "${{ steps.release_type.outputs.type }}" == "alpha" ]]; then
75
71
VERSION="${VERSION}-alpha.$(date +%s)"
76
72
fi
77
73
echo "version=${VERSION}" >> $GITHUB_OUTPUT
78
74
79
75
- name : Update Version
80
76
run : |
81
- npm version ${{ steps.semantic.outputs.version }} --no-git-tag-version
77
+ npm version ${{ steps.package_version.outputs.version }} --no-git-tag-version
78
+
79
+ - name : Create Release
80
+ env :
81
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
+ run : |
83
+ RELEASE_TAG="v${{ steps.package_version.outputs.version }}"
84
+ gh release create $RELEASE_TAG \
85
+ --target=$GITHUB_SHA \
86
+ --title="$RELEASE_TAG" \
87
+ --generate-notes
82
88
83
89
- name : Publish
84
90
env :
88
94
pnpm publish --access=public --tag alpha --no-git-checks
89
95
else
90
96
pnpm publish --access=public --no-git-checks
91
- fi
92
-
93
- - name : Create Git Tag
94
- if : success()
95
- run : |
96
- git config user.name 'github-actions[bot]'
97
- git config user.email 'github-actions[bot]@users.noreply.github.com'
98
- git tag -a "v${{ steps.semantic.outputs.version }}" -m "Release v${{ steps.semantic.outputs.version }}"
99
- git push origin "v${{ steps.semantic.outputs.version }}"
97
+ fi
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @aithranetwork/plugin-aithra-toolkit" ,
3
- "version" : " 0.0.4 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"type" : " module" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments