Skip to content

Commit 94e87f2

Browse files
bump versions and add makefile (#5)
Signed-off-by: Bill Maxwell <[email protected]>
1 parent c44fa8b commit 94e87f2

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Makefile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

scripts/install-binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (process.platform === 'win32') {
5555
const 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

6161
const pltfm = {

0 commit comments

Comments
 (0)