-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1764447
commit b6b325c
Showing
11 changed files
with
184 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: TII Workflow | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-npm: | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- run: npm install | ||
- run: npm run build | ||
- run: npm install | ||
|
||
- name: build icons tii | ||
working-directory: icons/tii | ||
run: npm run build | ||
|
||
- run: npm publish --access public | ||
name: 📦 @icongo/tii publish to NPM | ||
working-directory: icons/tii | ||
continue-on-error: true | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: tii-artifact | ||
path: | | ||
icons/tii/esm/**/* | ||
icons/tii/lib/**/* | ||
icons/tii/src/**/* | ||
icons/tii/svg/**/* | ||
github-package: | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
needs: build-npm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://npm.pkg.github.com | ||
scope: '@jaywcjlove' | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: tii-artifact | ||
path: icons/tii/ | ||
|
||
- name: Display structure of downloaded files | ||
run: ls -R | ||
working-directory: icons/tii/ | ||
|
||
- name: "Modify @icongo/tii => @jaywcjlove/icongo-tii" | ||
uses: jaywcjlove/github-action-package@main | ||
continue-on-error: true | ||
with: | ||
path: icons/tii/package.json | ||
rename: '@jaywcjlove/icongo-tii' | ||
|
||
- run: npm publish | ||
working-directory: icons/tii | ||
name: 📦 @jaywcjlove/icongo-tii publish to NPM | ||
continue-on-error: true | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.*~ | ||
~*.* | ||
* | ||
!.gitignore | ||
!.npmignore | ||
!tsconfig.json | ||
!package.json | ||
!svgo.config.js | ||
!data | ||
!README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* | ||
!lib/* | ||
!esm/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Themify Icons | ||
=== | ||
|
||
[![npm version](https://img.shields.io/npm/v/@icongo/tii.svg)](https://www.npmjs.com/package/@icongo/tii) | ||
![SVG Icons](https://shields.io/badge/SVG-icons-green?logo=svg&style=flat) | ||
![SVG Icons](https://shields.io/badge/TypeScript-Support-green?logo=TypeScript&style=flat) | ||
![React Components](https://shields.io/badge/React-components-green?logo=react&style=flat) | ||
|
||
[Preview Icons](http://icongo.github.io/#/icons/tii) | ||
|
||
```bash | ||
npm i @icongo/tii | ||
``` | ||
|
||
```jsx | ||
import { IconName } from '@icongo/tii'; | ||
import data from '@icongo/tii/data.json'; | ||
import names from '@icongo/tii/names.json'; | ||
``` | ||
|
||
## License | ||
|
||
Licensed under the MIT License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "@icongo/tii", | ||
"description": "Themify Icons", | ||
"version": "1.1.2", | ||
"main": "./lib/index.js", | ||
"module": "./esm/index.js", | ||
"types": "./lib/index.d.ts", | ||
"sideEffects": false, | ||
"homepage": "http://icongo.github.io/#/icons/tii", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jaywcjlove/icongo.git" | ||
}, | ||
"scripts": { | ||
"cpy": "cpy '../../www/public/icons/tii/*.svg' svg --flat", | ||
"icongo": "icongo --prefix TII --source svg -o ./src", | ||
"build": "npm run cpy && npm run icongo && tsbb build --no-source-maps", | ||
"start": "npm run build" | ||
}, | ||
"keywords": [ | ||
"icongo", | ||
"Themify", | ||
"react-icons", | ||
"icons", | ||
"icon" | ||
], | ||
"author": "jaywcjlove", | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"declaration": true, | ||
"baseUrl": ".", | ||
"jsx": "react-jsx", | ||
"noFallthroughCasesInSwitch": true | ||
}, | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters