Skip to content

A rebuild of @primer/octicons to use lightweight React components

Notifications You must be signed in to change notification settings

fregante/octicons-plain-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

octicons-plain-react npm version

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.

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

  1. GitHub Actions runs bump-and-publish.sh
  2. It fetches the latest version of @primer/octicons
  3. It sets its own version to match that
  4. 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
  5. git add is called to ensure these changes are saved in the tag itself
  6. If the version change is successful, npm publish is run
  7. Publishing calls prepack.sh, which builds the components and runs all the transforms
  8. The new files are published to npm

License

MIT © GitHub Inc

About

A rebuild of @primer/octicons to use lightweight React components

Resources

Stars

Watchers

Forks

Packages

No packages published