1.1.6 • Published 16 days ago
@raspberrypifoundation/design-system-react v1.1.6
Design System React
Usage
Using a local running NPM
design-system-react
is published to the GitHub package registry and is dependent on design-system-core
.
Installation of design-system-core
requires a user-level ~/.npmrc
file that contains a GitHub access token.
Follow the steps in the design-system-core
README to create a token and set up a local version of that project.
You should have:
- generated a token via the GitHub website: it will typically be prefixed with "ghp"; and
- created a file called
.npmrc
in your user root directory (not the directory of this project) that contains the following://npm.pkg.github.com/:_authToken={GITHUB_TOKEN}
Once that's complete, use npm
- not yarn
- to install this package.
npm i
npm run storybook
Adding design-system-react to a project
Projects that need to import this package must have an .npmrc
file at their root level. The file should contain:
# Sets GitHub as the registry for packages scoped to @RaspberryPiFoundation
@raspberrypifoundation:registry=https://npm.pkg.github.com
design-system-react
can then be installed using the project's package manager.
Deployment
Create a new release:
- Update the changelog
- Click 'Draft a new release'
- Type the version in the dropdown and click 'Create new tag'
- Add a title and some notes about what the release contains
- Click 'Publish release' (leave 'Set as latest release' checked) and a build will be kicked off
- Add new version to
package.json
in your app
Using Docker
TODO