@tuanhv/op-cli 0.1.0 → 0.1.1
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 +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ markers so both humans and agents can react to them programmatically.
|
|
|
22
22
|
|
|
23
23
|
## From install to first useful command
|
|
24
24
|
|
|
25
|
+
The npm package is [@tuanhv/op-cli](https://www.npmjs.com/package/@tuanhv/op-cli):
|
|
26
|
+
|
|
25
27
|
```sh
|
|
26
28
|
npm install -g @tuanhv/op-cli
|
|
27
29
|
op-cli auth login # prompts for URL and API key; needs an interactive terminal
|
|
@@ -94,7 +96,8 @@ mappings; do not build on it.
|
|
|
94
96
|
npm run build # compile src/ to dist/
|
|
95
97
|
npm test # unit tests over fixtures from a real instance
|
|
96
98
|
npm run lint
|
|
97
|
-
scripts/smoke.sh
|
|
99
|
+
scripts/smoke.sh # REQUIRED gate before publishing
|
|
100
|
+
npm publish --access public # scoped package; public is not the default
|
|
98
101
|
```
|
|
99
102
|
|
|
100
103
|
`scripts/smoke.sh` exercises a real create, update, time log, and delete
|
|
@@ -103,6 +106,11 @@ lifecycle against a scratch project on a live instance configured through
|
|
|
103
106
|
broken step. There are no automated integration tests by design; this
|
|
104
107
|
script is the regression net for real write paths before every publish.
|
|
105
108
|
|
|
109
|
+
Releases after the first can ship from CI: once the package exists and its
|
|
110
|
+
npm Trusted Publishers entry points at `.github/workflows/release.yml`,
|
|
111
|
+
pushing a `v*` tag has GitHub Actions publish with a short-lived OIDC token
|
|
112
|
+
and provenance; no npm token is stored anywhere.
|
|
113
|
+
|
|
106
114
|
## License
|
|
107
115
|
|
|
108
116
|
MIT. See the NOTICE file for the trademark statement.
|