@onkernel/cli 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -22
- package/package.json +19 -19
package/README.md
CHANGED
|
@@ -68,34 +68,20 @@ git push origin cli/v$VERSION
|
|
|
68
68
|
make release
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
The NPM publish needs some extra steps (hopefully one day goreleaser will support this, but right now it assumes download links are public github releases, which we don't have at the moment):
|
|
72
|
+
|
|
73
|
+
````bash
|
|
74
|
+
go run scripts/npmpublish/npmpublish.go ./.npmdisttmpl ./dist
|
|
75
|
+
cd .npmdist && npm publish --access public
|
|
76
|
+
```)
|
|
77
|
+
|
|
71
78
|
### Environment variables
|
|
72
79
|
|
|
73
80
|
The CLI requires a Kernel API key to interact with the platform:
|
|
74
81
|
|
|
75
82
|
```bash
|
|
76
83
|
export KERNEL_API_KEY=your_api_key
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### Releasing a new version
|
|
80
|
-
|
|
81
|
-
1. Update the changelog:
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
make changelog
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
2. Tag the release (e.g. `v1.0.0`) and push the tag:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
git tag cli/v0.1.0
|
|
91
|
-
git push origin cli/v0.1.0
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
3. Run `make release` – **goreleaser** will:
|
|
95
|
-
|
|
96
|
-
- Build binaries for macOS (arm64/amd64), Linux and Windows
|
|
97
|
-
- Create a GitHub release upload archives
|
|
98
|
-
- Publish/commit the Homebrew formula to the `onkernel/homebrew-tap` repository
|
|
84
|
+
````
|
|
99
85
|
|
|
100
86
|
## Directory structure
|
|
101
87
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onkernel/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI for Kernel deployment and invocation",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"postinstall": "node install.js",
|
|
@@ -33,75 +33,75 @@
|
|
|
33
33
|
},
|
|
34
34
|
"archives": {
|
|
35
35
|
"darwin-arm64": {
|
|
36
|
-
"name": "kernel_0.1.
|
|
37
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
36
|
+
"name": "kernel_0.1.5_darwin_arm64.tar.gz",
|
|
37
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_darwin_arm64.tar.gz",
|
|
38
38
|
"bins": [
|
|
39
39
|
"kernel"
|
|
40
40
|
],
|
|
41
41
|
"format": "tar.gz",
|
|
42
42
|
"checksum": {
|
|
43
43
|
"algorithm": "sha256",
|
|
44
|
-
"digest": "
|
|
44
|
+
"digest": "5ededd72d5998c5253d2e5fb05e5ac97bb96376545710ada564e0c48d806fb8a"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"darwin-x64": {
|
|
48
|
-
"name": "kernel_0.1.
|
|
49
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
48
|
+
"name": "kernel_0.1.5_darwin_amd64.tar.gz",
|
|
49
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_darwin_amd64.tar.gz",
|
|
50
50
|
"bins": [
|
|
51
51
|
"kernel"
|
|
52
52
|
],
|
|
53
53
|
"format": "tar.gz",
|
|
54
54
|
"checksum": {
|
|
55
55
|
"algorithm": "sha256",
|
|
56
|
-
"digest": "
|
|
56
|
+
"digest": "2b0f1bff32a5047331100915adce228f3ded2871a47ef0d53e139a0049412c8c"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"linux-arm64": {
|
|
60
|
-
"name": "kernel_0.1.
|
|
61
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
60
|
+
"name": "kernel_0.1.5_linux_arm64.tar.gz",
|
|
61
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_linux_arm64.tar.gz",
|
|
62
62
|
"bins": [
|
|
63
63
|
"kernel"
|
|
64
64
|
],
|
|
65
65
|
"format": "tar.gz",
|
|
66
66
|
"checksum": {
|
|
67
67
|
"algorithm": "sha256",
|
|
68
|
-
"digest": "
|
|
68
|
+
"digest": "d06bdc460c6f3b3c4c8de7b6d1a0c8b9128f2e9dc77a5662fed3a68c0cdba695"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"linux-x64": {
|
|
72
|
-
"name": "kernel_0.1.
|
|
73
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
72
|
+
"name": "kernel_0.1.5_linux_amd64.tar.gz",
|
|
73
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_linux_amd64.tar.gz",
|
|
74
74
|
"bins": [
|
|
75
75
|
"kernel"
|
|
76
76
|
],
|
|
77
77
|
"format": "tar.gz",
|
|
78
78
|
"checksum": {
|
|
79
79
|
"algorithm": "sha256",
|
|
80
|
-
"digest": "
|
|
80
|
+
"digest": "fc7e47b2261c75df494d02d6c69eaee8541f98f6991568ebc9de0b0957d7afa4"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"win32-arm64": {
|
|
84
|
-
"name": "kernel_0.1.
|
|
85
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
84
|
+
"name": "kernel_0.1.5_windows_arm64.tar.gz",
|
|
85
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_windows_arm64.tar.gz",
|
|
86
86
|
"bins": [
|
|
87
87
|
"kernel.exe"
|
|
88
88
|
],
|
|
89
89
|
"format": "tar.gz",
|
|
90
90
|
"checksum": {
|
|
91
91
|
"algorithm": "sha256",
|
|
92
|
-
"digest": "
|
|
92
|
+
"digest": "4cb1649719186dd37ec0d7380005696a5d27abbae3d3365c4771519992b9555f"
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"win32-x64": {
|
|
96
|
-
"name": "kernel_0.1.
|
|
97
|
-
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.
|
|
96
|
+
"name": "kernel_0.1.5_windows_amd64.tar.gz",
|
|
97
|
+
"url": "https://onkernel-public.s3.us-east-1.amazonaws.com/releases/download/cli/0.1.5/kernel_0.1.5_windows_amd64.tar.gz",
|
|
98
98
|
"bins": [
|
|
99
99
|
"kernel.exe"
|
|
100
100
|
],
|
|
101
101
|
"format": "tar.gz",
|
|
102
102
|
"checksum": {
|
|
103
103
|
"algorithm": "sha256",
|
|
104
|
-
"digest": "
|
|
104
|
+
"digest": "a647ce268763bb48fcaf7556ec47d03f0e4c4e0d16556a77348d4d016aadfc83"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|