octicons-plain-react
v19.12.0
Published
A rebuild of @primer/octicons to use lightweight React components
Downloads
395
Readme
octicons-plain-react
A rebuild of @primer/octicons to use lightweight React components
The GITHUB trademark is owned by GitHub, Inc. This repository is not associated with GitHub.
@primer/octicons-react
uses advanced React features I don't need.@primer/octicons
does not includeocticon-*
classes. Report
So this package simplifies import by the Refined GitHub extension by just exporting pre-built React components with the required classes.
Install
npm install octicons-plain-react
Usage
import AlertIcon from "octicons-plain-react/alert";
<AlertIcon/>
Publishing
- GitHub Actions runs
bump-and-publish.sh
- It fetches the latest version of @primer/octicons
- It sets its own version to match that
- The version script is called and it installs its own version
- Use
npm version 1.2.3 --ignore-scripts
to set a custom version without updating octicons
- Use
git add
is called to ensure these changes are saved in the tag itself- If the version change is successful,
npm publish
is run - Publishing calls
prepack.sh
, which builds the components and runs all the transforms - The new files are published to npm
License
MIT © GitHub Inc