@proulr/rosetta 0.1.2 → 0.1.3
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/docs/ROSETTA.md +11 -1
- package/docs/npm-publish-cicd.md +6 -2
- package/package.json +1 -1
package/docs/ROSETTA.md
CHANGED
|
@@ -210,7 +210,17 @@ Workflow: [`.github/workflows/publish-npm.yml`](../.github/workflows/publish-npm
|
|
|
210
210
|
4. Workflow filename: `publish-npm.yml`
|
|
211
211
|
5. Environment: vazio
|
|
212
212
|
|
|
213
|
-
Sem Trusted Publisher, o job `publish` falha (404/401)
|
|
213
|
+
Sem Trusted Publisher, o job `publish` falha (404/401) na 1ª vez — use `NPM_TOKEN` Automation no bootstrap. Consumers usam `"@proulr/rosetta": "^0.1.2"` (registry).
|
|
214
|
+
|
|
215
|
+
### Version sync (pre-commit)
|
|
216
|
+
|
|
217
|
+
Ao commit no Rosetta com mudança de source, o hook chama `../scripts/proulr-bump-and-sync-deps.mjs` (igual contract/core):
|
|
218
|
+
|
|
219
|
+
1. Bump patch em `package.json`
|
|
220
|
+
2. Atualiza `^versão` em app + BFFs que dependem de `@proulr/rosetta`
|
|
221
|
+
3. Roda `npm install` nesses consumers
|
|
222
|
+
|
|
223
|
+
Manual: `npm run version:sync` (com changes staged). `PROULR_BUMP_PUBLISH=1` publica no npm antes do sync.
|
|
214
224
|
|
|
215
225
|
---
|
|
216
226
|
|
package/docs/npm-publish-cicd.md
CHANGED
|
@@ -45,6 +45,10 @@ O workflow já tem `id-token: write`. Com Trusted Publisher configurado, o publi
|
|
|
45
45
|
|
|
46
46
|
## Consumidores (app / BFFs)
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
Dependência do registry (não `file:`):
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
"@proulr/rosetta": "^0.1.2"
|
|
50
52
|
```
|
|
53
|
+
|
|
54
|
+
No commit do Rosetta, o pre-commit (`scripts/proulr-bump-and-sync-deps.mjs`) bumpa a versão e atualiza sozinho os `package.json` + `npm install` dos siblings.
|