@plasius/react-state 1.0.8 → 1.0.10

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.
@@ -22,9 +22,56 @@ jobs:
22
22
  node-version-file: '.nvmrc'
23
23
  cache: 'npm'
24
24
 
25
+ - name: Bump version & decide publish flags
26
+ id: pkg
27
+ env:
28
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29
+ run: |
30
+ set -euo pipefail
31
+ git config user.name "github-actions[bot]"
32
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
33
+ NEW_VER=$(npm version patch -m "chore: release v%s [skip ci]")
34
+ echo "New version: $NEW_VER"
35
+ git push --follow-tags
36
+
37
+ # Expose tag (vX.Y.Z) and version (X.Y.Z) for later steps
38
+ VER_NO_V=${NEW_VER#v}
39
+ echo "tag=$NEW_VER" >> "$GITHUB_OUTPUT"
40
+ echo "version=$VER_NO_V" >> "$GITHUB_OUTPUT"
41
+
42
+ NAME=$(node -p "require('./package.json').name")
43
+ echo "name=$NAME" >> "$GITHUB_OUTPUT"
44
+ if npm view "$NAME" version >/dev/null 2>&1; then
45
+ echo "flags=" >> "$GITHUB_OUTPUT"
46
+ else
47
+ echo "flags=--access public" >> "$GITHUB_OUTPUT"
48
+ fi
49
+
25
50
  - name: Install deps (CI)
26
51
  run: npm ci
27
52
 
53
+ - name: Test (coverage)
54
+ run: npm run test -- --coverage
55
+
56
+ - name: Upload coverage to Codecov
57
+ uses: codecov/codecov-action@v4
58
+ with:
59
+ token: ${{ secrets.CODECOV_TOKEN }}
60
+ files: ./coverage/lcov.info
61
+ flags: unittests
62
+ fail_ci_if_error: true
63
+
64
+ - name: Build
65
+ run: npm run build --if-present
66
+
67
+ - name: Generate SBOM (CycloneDX)
68
+ run: npm sbom --sbom-format=cyclonedx --sbom-type=library --omit dev > sbom.cdx.json
69
+
70
+ - name: Attest SBOM (GitHub Artifact Attestations)
71
+ uses: actions/attest-build-provenance@v3
72
+ with:
73
+ subject-path: sbom.cdx.json
74
+
28
75
  - name: Update CHANGELOG.md (move Unreleased to new version)
29
76
  env:
30
77
  VERSION: ${{ steps.pkg.outputs.version }}
@@ -111,53 +158,6 @@ jobs:
111
158
  git commit -m "docs(changelog): release v${VERSION}"
112
159
  git push
113
160
 
114
- - name: Test (coverage)
115
- run: npm run test -- --coverage
116
-
117
- - name: Upload coverage to Codecov
118
- uses: codecov/codecov-action@v4
119
- with:
120
- token: ${{ secrets.CODECOV_TOKEN }}
121
- files: ./coverage/lcov.info
122
- flags: unittests
123
- fail_ci_if_error: true
124
-
125
- - name: Build
126
- run: npm run build --if-present
127
-
128
- - name: Generate SBOM (CycloneDX)
129
- run: npm sbom --sbom-format=cyclonedx --sbom-type=library --omit dev > sbom.cdx.json
130
-
131
- - name: Attest SBOM (GitHub Artifact Attestations)
132
- uses: actions/attest-build-provenance@v3
133
- with:
134
- subject-path: sbom.cdx.json
135
-
136
- - name: Bump version & decide publish flags
137
- id: pkg
138
- env:
139
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
140
- run: |
141
- set -euo pipefail
142
- git config user.name "github-actions[bot]"
143
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
144
- NEW_VER=$(npm version patch -m "chore: release v%s [skip ci]")
145
- echo "New version: $NEW_VER"
146
- git push --follow-tags
147
-
148
- # Expose tag (vX.Y.Z) and version (X.Y.Z) for later steps
149
- VER_NO_V=${NEW_VER#v}
150
- echo "tag=$NEW_VER" >> "$GITHUB_OUTPUT"
151
- echo "version=$VER_NO_V" >> "$GITHUB_OUTPUT"
152
-
153
- NAME=$(node -p "require('./package.json').name")
154
- echo "name=$NAME" >> "$GITHUB_OUTPUT"
155
- if npm view "$NAME" version >/dev/null 2>&1; then
156
- echo "flags=" >> "$GITHUB_OUTPUT"
157
- else
158
- echo "flags=--access public" >> "$GITHUB_OUTPUT"
159
- fi
160
-
161
161
  - name: Create GitHub Release from tag (first-party)
162
162
  env:
163
163
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -21,19 +21,15 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
21
21
  - **Security**
22
22
  - (placeholder)
23
23
 
24
- ## [] - 2025-09-17
25
-
26
- - **Added**
27
- - Code coverage added.
28
-
29
- - **Changed**
30
- - (placeholder)
24
+ ## [1.0.10] - 2025-09-17
31
25
 
32
26
  - **Fixed**
33
- - (placeholder)
27
+ - CD Pipeline ordering fix for version in CHANGELOG.md
34
28
 
35
- - **Security**
36
- - (placeholder)
29
+ ## [1.0.7] - 2025-09-17
30
+
31
+ - **Added**
32
+ - Code coverage added.
37
33
 
38
34
  ---
39
35
 
@@ -70,6 +66,7 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
70
66
 
71
67
  ---
72
68
 
73
- [Unreleased]: https://github.com/Plasius-LTD/react-state/compare/v...HEAD
69
+ [Unreleased]: https://github.com/Plasius-LTD/react-state/compare/v1.0.10...HEAD
74
70
  [1.0.0]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.0
75
- []: https://github.com/Plasius-LTD/react-state/releases/tag/v
71
+ [1.0.7]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.7
72
+ [1.0.10]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/react-state",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Tiny, testable, typesafe React Scoped Store helper.",
5
5
  "keywords": [
6
6
  "react",
package/sbom.cdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:2cd3bc69-1f9e-4744-91a0-36213d80cdb4",
5
+ "serialNumber": "urn:uuid:f0ed2ffb-226d-413f-a182-36e60e9b39c6",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2025-09-17T15:53:25.447Z",
8
+ "timestamp": "2025-09-17T16:16:53.742Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "@plasius/react-state@1.0.7",
22
+ "bom-ref": "@plasius/react-state@1.0.10",
23
23
  "type": "library",
24
24
  "name": "react-state",
25
- "version": "1.0.7",
25
+ "version": "1.0.10",
26
26
  "scope": "required",
27
27
  "author": "Plasius LTD",
28
28
  "description": "Tiny, testable, typesafe React Scoped Store helper.",
29
- "purl": "pkg:npm/%40plasius/react-state@1.0.7",
29
+ "purl": "pkg:npm/%40plasius/react-state@1.0.10",
30
30
  "properties": [
31
31
  {
32
32
  "name": "cdx:npm:package:path",
@@ -59,7 +59,7 @@
59
59
  "components": [],
60
60
  "dependencies": [
61
61
  {
62
- "ref": "@plasius/react-state@1.0.7",
62
+ "ref": "@plasius/react-state@1.0.10",
63
63
  "dependsOn": []
64
64
  }
65
65
  ]