File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1+ # Makefile
2+
3+ # Example usage: make release VERSION=1.0.0
4+
5+ release :
6+ # Ensure that a version is provided
7+ if [ -z " $( VERSION) " ]; then echo " VERSION is not set. Usage: make release VERSION=x.y.z" ; exit 1; fi
8+ # Fetch the latest changes from the origin
9+ git fetch origin
10+ # Reset the current branch to match the origin branch
11+ git reset --hard origin/$(shell git rev-parse --abbrev-ref HEAD)
12+ # Clean untracked files and directories
13+ git clean -dxf
14+ # Tag the current commit
15+ git tag -a " $( VERSION) " -m " Release $( VERSION) "
16+ # Push the tag to remote repository
17+ git push origin " $( VERSION) "
18+ # Publish to npm
19+ npm build && npm publish --access public
20+
21+ .PHONY : release
Original file line number Diff line number Diff line change 11{
22 "name" : " @gptscript-ai/gptscript" ,
3- "version" : " 0.1.2 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " Run gptscript in node.js" ,
55 "main" : " lib/gptscript.js" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (process.platform === 'win32') {
5555const gptscript_info = {
5656 name : "gptscript" ,
5757 url : "https://github.com/gptscript-ai/gptscript/releases/download/" ,
58- version : "v0.1.4 "
58+ version : "v0.1.5 "
5959}
6060
6161const pltfm = {
You can’t perform that action at this time.
0 commit comments