@hmcts/opal-frontend-common 0.0.85 → 0.0.86

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 CHANGED
@@ -129,8 +129,20 @@ Once any changes have been approved and merged into the main branch, you'll need
129
129
 
130
130
  1. Increment the version number in both the library's root `package.json` and in `/projects/opal-frontend-common/package.json`.
131
131
  2. Commit and push those changes to the main branch.
132
- 3. On GitHub, create a new [release](https://github.com/hmcts/opal-frontend-common-ui-lib/releases) and use the updated version number as a tag.
133
- 4. When the release workflow completes, the library will be published.
132
+ 3. Create and push the version tag from the updated main branch:
133
+
134
+ ```bash
135
+ git checkout main
136
+ git pull
137
+ git tag vX.Y.Z
138
+ git push origin vX.Y.Z
139
+ ```
140
+
141
+ 4. On GitHub, draft a new [release](https://github.com/hmcts/opal-frontend-common-ui-lib/releases) and select the existing `vX.Y.Z` tag from the tag dropdown.
142
+ 5. Do not create the tag in the GitHub release form. The tag must already exist so the npm trusted publishing provenance includes the `refs/tags/vX.Y.Z` source repository ref.
143
+ 6. When the release workflow completes, the library will be published.
144
+
145
+ If a publish fails before npm accepts the package version, delete the failed GitHub release and remote tag, then push the existing local tag again before recreating the release from that existing tag. Do not rerun a failed release workflow if the provenance was generated without a tag ref.
134
146
 
135
147
  After this new version of the library is published, any consuming application should remove the local or outdated version of the library and then install the published version by running:
136
148
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/opal-frontend-common",
3
- "version": "0.0.85",
3
+ "version": "0.0.86",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -5,6 +5,7 @@
5
5
  ==========================================================================
6
6
  These imports include external styles used across the application.
7
7
  */
8
+ @use '@ministryofjustice/frontend/moj/base' as mojBase;
8
9
  @use 'govuk-frontend/dist/govuk/index' as *;
9
10
  @use '@ministryofjustice/frontend/moj/all' as moj;
10
11
  @use './custom/_custom-section_break.scss';
@@ -85,7 +85,7 @@ declare class DateService {
85
85
  * @param value - The string value in ISO format.
86
86
  * @returns A DateTime object representing the given value.
87
87
  */
88
- getFromIso(value: string): DateTime;
88
+ getFromIso(value: string): DateTime<true> | DateTime<false>;
89
89
  /**
90
90
  * Returns the current date and time.
91
91
  * @returns {DateTime} The current date and time.