@wpmoo/odoo 0.8.36 → 0.8.37

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.
Files changed (2) hide show
  1. package/README.md +28 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -266,6 +266,34 @@ tool-owned development guideline files.
266
266
  - Legacy `--org`, `--community-repo`, and `--pro-repo` flags are still accepted
267
267
  when no `--source-repo-url` flags are provided.
268
268
 
269
+ ## Release
270
+
271
+ For local release checks from the repository root, run:
272
+
273
+ ```bash
274
+ npm run release:check
275
+ ```
276
+
277
+ The script checks whether the current package version already exists on npm. If
278
+ it does, it runs a patch version bump without creating a git tag, then stops so
279
+ you can commit and push `package.json` and `package-lock.json` before publishing.
280
+ If the version is not published yet, it keeps the current version and runs
281
+ `npm test -- test/package.test.ts` and `npm pack --dry-run`. Actual publishing
282
+ is handled by the GitHub Actions workflow.
283
+
284
+ For GitHub Actions publishing, configure npm Trusted Publishing for
285
+ `wpmoo-org/wpmoo-odoo` with workflow filename `publish.yml`, then run the
286
+ `Publish` workflow manually from GitHub Actions or push a matching release tag:
287
+
288
+ ```bash
289
+ VERSION="$(node -p "require('./package.json').version")"
290
+ git tag -a "v$VERSION" -m "Release v$VERSION"
291
+ git push origin "v$VERSION"
292
+ ```
293
+
294
+ The workflow uses OIDC instead of an npm token, verifies typecheck/tests/build,
295
+ fails if a pushed tag does not match the package version, fails if the package
296
+ version already exists on npm, runs `npm pack --dry-run`, and publishes to npm.
269
297
 
270
298
  ## Support
271
299
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpmoo/odoo",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "description": "WPMoo Odoo lifecycle tooling for development, staging, and production workflows.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "scripts": {
39
39
  "prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
40
40
  "build": "tsc -p tsconfig.build.json",
41
+ "release:check": "bash scripts/release-check.sh",
41
42
  "test": "vitest run",
42
43
  "typecheck": "tsc -p tsconfig.json --noEmit"
43
44
  },