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 1
1
{
2
2
"name" : " @gptscript-ai/gptscript" ,
3
- "version" : " 0.1.2 " ,
3
+ "version" : " 0.1.3 " ,
4
4
"description" : " Run gptscript in node.js" ,
5
5
"main" : " lib/gptscript.js" ,
6
6
"repository" : {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ if (process.platform === 'win32') {
55
55
const gptscript_info = {
56
56
name : "gptscript" ,
57
57
url : "https://github.com/gptscript-ai/gptscript/releases/download/" ,
58
- version : "v0.1.4 "
58
+ version : "v0.1.5 "
59
59
}
60
60
61
61
const pltfm = {
You can’t perform that action at this time.
0 commit comments