dalux-build-api 1.1.0 → 1.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/README.md +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -341,14 +341,14 @@ npm test
|
|
|
341
341
|
### Automatic (push to `main`)
|
|
342
342
|
|
|
343
343
|
1. Merge to `main` (or push directly). **CI** must pass.
|
|
344
|
-
2.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
2. After **both** the Node and Python test jobs succeed, **CI** calls **Publish npm Package** via `workflow_call` (same run as CI, so it does not depend on `workflow_run`).
|
|
345
|
+
3. The publish job only runs when that push changes `package.json`, `package-lock.json`, `src/`, or `test/`.
|
|
346
|
+
4. **Version bump** uses the same rules as the Python publisher ([commit message tokens](python/README.md#maintainer-pypi-releases)), but the **current** semver is **`max(python/pyproject.toml, package.json)`** so npm catches up when the Python package is ahead.
|
|
347
|
+
5. It runs tests again, publishes to npm, then pushes `chore: release vX.Y.Z [skip npm]`, tag `vX.Y.Z`, and a **GitHub Release** (unless the tag already exists). **`[skip npm]`** skips a second publish pass and skips **CI** on that sync commit.
|
|
348
348
|
|
|
349
349
|
### Manual
|
|
350
350
|
|
|
351
|
-
- **Actions → Publish npm Package → Run workflow** for **patch / minor / major** (same test → publish → sync commit → tag → **GitHub Release
|
|
351
|
+
- **Actions → Publish npm Package → Run workflow** for **patch / minor / major** (same test → publish → sync commit → tag → **GitHub Release**). The entry workflow is [npm-publish.yml](.github/workflows/npm-publish.yml); it delegates to [npm-publish-reusable.yml](.github/workflows/npm-publish-reusable.yml) (GitHub requires `workflow_call` in its own file).
|
|
352
352
|
- **GitHub Release (published)** publishes the version already in `package.json` at that tag (no version bump in the workflow).
|
|
353
353
|
|
|
354
354
|
Create a GitHub **environment** named `npm` with secret **`NPM_TOKEN`**. If pushes or releases from `GITHUB_TOKEN` are blocked, set **`RELEASE_PAT`** as described in [python/README.md](python/README.md#maintainer-pypi-releases).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dalux-build-api",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Node.js client for the Dalux Build API",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"client",
|
|
21
21
|
"construction"
|
|
22
22
|
],
|
|
23
|
-
"author": "",
|
|
23
|
+
"author": "Bruno Adam",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|