19.15.1 • Published 8 months ago
octicons-plain-react v19.15.1
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-reactuses advanced React features I don't need.@primer/octiconsdoes 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-reactUsage
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-scriptsto set a custom version without updating octicons
- Use
git addis called to ensure these changes are saved in the tag itself- If the version change is successful,
npm publishis 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