pattapatta 0.2.0 → 0.2.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 +6 -0
- package/README.md +8 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -81,9 +81,17 @@ This repo uses [Changesets](https://github.com/changesets/changesets). Only the
|
|
|
81
81
|
1. In a PR that changes the library, run `pnpm changeset`, commit the file under `.changeset/`, and merge to `main`.
|
|
82
82
|
2. The **Release** workflow opens or updates a **Version Packages** PR (bumps version, updates `CHANGELOG.md`).
|
|
83
83
|
3. Merging that PR publishes to npm (OIDC + provenance) and creates a GitHub Release.
|
|
84
|
+
Publish must use **`npm publish`** (not `pnpm publish`) — OIDC only works with the npm CLI ([docs](https://docs.npmjs.com/trusted-publishers)).
|
|
84
85
|
|
|
85
86
|
Current package version is in `package.json` (e.g. `0.2.0`). If publish failed after a version bump, fix the trusted-publisher config (workflow name must be exactly `release.yml`) and re-run **Release** — Changesets will publish any version not yet on npm.
|
|
86
87
|
|
|
88
|
+
If CI fails with **`ENEEDAUTH`** or **`E404 Not Found - PUT …/pattapatta`**, treat it as auth failure (npm hides 401 as 404). Check:
|
|
89
|
+
|
|
90
|
+
1. Trusted Publisher on npmjs.com matches exactly: `MadOrkestra` / `pattapatta` / `release.yml`, and **`npm publish` is allowed** (new configs default to stage-only).
|
|
91
|
+
2. Release uses `scripts/publish-oidc.sh` → `npm publish` (Changesets would otherwise pick `pnpm publish`, which cannot OIDC).
|
|
92
|
+
3. Job has `id-token: write` and runs on a **GitHub-hosted** runner.
|
|
93
|
+
4. `package.json` `repository.url` matches `https://github.com/MadOrkestra/pattapatta.git`.
|
|
94
|
+
|
|
87
95
|
Local checks used by CI:
|
|
88
96
|
|
|
89
97
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pattapatta",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Pen-plotter geometry library (PGS-inspired): hatching, packing, boolean paths for SVG",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/MadOrkestra/pattapatta/issues"
|
|
15
15
|
},
|
|
16
|
-
"homepage": "https://
|
|
16
|
+
"homepage": "https://pattapatta.madorkestra.com",
|
|
17
17
|
"keywords": [
|
|
18
18
|
"pen-plotter",
|
|
19
19
|
"svg",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"docs:build": "pnpm --filter website build",
|
|
138
138
|
"changeset": "changeset",
|
|
139
139
|
"version-packages": "changeset version",
|
|
140
|
-
"release": "
|
|
140
|
+
"release": "bash scripts/publish-oidc.sh",
|
|
141
141
|
"prepack": "pnpm run build",
|
|
142
142
|
"prepublishOnly": "pnpm test && pnpm run build"
|
|
143
143
|
},
|