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 +2 -1
- package/README.md +14 -4
- package/package.json +1 -1
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
|
|
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
|
|
289
|
-
git push
|
|
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.
|
|
293
|
-
|
|
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
|
|