square-sdk-cli 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -69,7 +69,8 @@ All notable changes to this project are documented here. The format follows
69
69
  `--version` and `search`.
70
70
  - The weekly newest-SDK workflow now builds the bundle and smoke-tests it on
71
71
  node, so bundle-only breakage is caught too.
72
- - Pushing a `v*` tag publishes to npm with provenance; the tag must match
72
+ - Pushing a `v*` tag publishes to npm with provenance via npm Trusted
73
+ Publishing (OIDC), so no `NPM_TOKEN` secret is needed; the tag must match
73
74
  `package.json`.
74
75
  - `run()` takes one options object (`{ deps, stdout, stderr }`) instead of four
75
76
  positional parameters.
package/README.md CHANGED
@@ -285,12 +285,22 @@ Pushing a version tag publishes to npm with
285
285
  [provenance](https://docs.npmjs.com/generating-provenance-statements):
286
286
 
287
287
  ```bash
288
- npm version patch # bumps package.json and creates the tag
289
- git push --follow-tags
288
+ npm version patch -m "v%s" # bumps package.json, commits, tags v0.3.1
289
+ git push origin main
290
+ git push origin v0.3.1 # tag push triggers the Release workflow
290
291
  ```
291
292
 
292
- The tag must match `package.json` (`v0.2.1` ↔ `0.2.1`) or the workflow fails.
293
- It needs an `NPM_TOKEN` repository secret.
293
+ The tag must match `package.json` (`v0.3.1` ↔ `0.3.1`) or the workflow fails.
294
+
295
+ Authentication uses npm **Trusted Publishing** (OIDC) — no `NPM_TOKEN` secret
296
+ and no 2FA token to rotate. One-time setup on npmjs.com: package
297
+ `square-sdk-cli` → **Settings → Trusted publishing → Add publisher** →
298
+ GitHub Actions, owner `karthikdilliraj`, repository `square-sdk-cli`, workflow
299
+ `release.yml` (no environment). The workflow requires npm ≥ 11.5.1 and upgrades
300
+ npm itself.
301
+
302
+ `npm version` creates a lightweight tag, which `git push --follow-tags` skips —
303
+ push the tag explicitly as shown.
294
304
 
295
305
  ## Supported Square SDK versions
296
306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "square-sdk-cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Command-line interface for the Square API, exposing every SDK namespace and method via runtime introspection.",
5
5
  "keywords": [
6
6
  "square",