@bcgov/design-system-react-components 0.1.0-rc1 → 0.1.1-pr434
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 +28 -0
- package/dist/cjs/index.cjs +9996 -9637
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/SvgExclamationIcon/SvgExclamationIcon.d.ts +3 -0
- package/dist/cjs/types/components/SvgExclamationIcon/index.d.ts +1 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +0 -1
- package/dist/cjs/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/cjs/types/components/TextArea/index.d.ts +2 -0
- package/dist/cjs/types/components/TextField/TextField.d.ts +0 -1
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +9998 -9640
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/SvgExclamationIcon/SvgExclamationIcon.d.ts +3 -0
- package/dist/esm/types/components/SvgExclamationIcon/index.d.ts +1 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +0 -1
- package/dist/esm/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/esm/types/components/TextArea/index.d.ts +2 -0
- package/dist/esm/types/components/TextField/TextField.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +8 -2
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -135,6 +135,8 @@ Run `npm run vite-dev` to access the Vite React demo app.
|
|
|
135
135
|
|
|
136
136
|
### Publish new versions
|
|
137
137
|
|
|
138
|
+
#### npm package
|
|
139
|
+
|
|
138
140
|
To generate an updated copy of the package for distribution, run the included Rollup script: `npm run rollup`.
|
|
139
141
|
|
|
140
142
|
This will place artifacts in the `dist` folder, which is targeted for publishing in `package.json` with the [`files` field](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files).
|
|
@@ -142,3 +144,29 @@ This will place artifacts in the `dist` folder, which is targeted for publishing
|
|
|
142
144
|
Update the package version in `package.json` and run `npm publish` to push a new version.
|
|
143
145
|
|
|
144
146
|
To publish a beta/release candidate version, use `npm publish --tag next`.
|
|
147
|
+
|
|
148
|
+
#### GitHub release
|
|
149
|
+
|
|
150
|
+
GitHub releases are based on git tags.
|
|
151
|
+
|
|
152
|
+
```sh
|
|
153
|
+
# From your `main` branch, cut a new tag locally based on a commit SHA
|
|
154
|
+
git tag @bcgov/design-system-react-components@<version here> <commit SHA here>
|
|
155
|
+
|
|
156
|
+
# Push the tag to GitHub
|
|
157
|
+
git push --tags
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
From the [Releases page](https://github.com/bcgov/design-system/releases), click "Draft a new release".
|
|
161
|
+
|
|
162
|
+
For "Choose a tag", select the tag you created. For the previous tag, use the previous version of the same package.
|
|
163
|
+
|
|
164
|
+
Copy the Changelog notes for the new version and link to the npm page for the new version.
|
|
165
|
+
|
|
166
|
+
### GitHub Actions
|
|
167
|
+
|
|
168
|
+
GitHub Actions are located in `/.github/workflows` in the project root. Actions are included to:
|
|
169
|
+
|
|
170
|
+
- Build the Storybook and Vite applications on merge to `main`
|
|
171
|
+
- Test (Jest and Playwright) on pull request
|
|
172
|
+
- Publish new versions of the library on npm (`next` tag) on merge to `main`
|