Skip to content

Commit 1fe9f91

Browse files
Release v2.19.0
# New - Update `simple-icons` to v2.19.0 # Fix - Fix error in usage documentation
2 parents 9becf26 + 592c6f3 commit 1fe9f91

File tree

7 files changed

+497
-11
lines changed

7 files changed

+497
-11
lines changed

.github/workflows/auto-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Automated Releases
2+
on: workflow_dispatch
3+
4+
# This Workflow is triggered through the GitHub API:
5+
# curl -X Post \
6+
# -H "Authorization: Bearer <token>" \
7+
# -d '{"ref":"develop"}' \
8+
# https://api.github.com/repos/simple-icons/simple-icons-font/actions/workflows/auto-release.yml/dispatches
9+
# Replacing <token> by a personal access token with scope `public_repo`
10+
11+
jobs:
12+
auto-release:
13+
name: Automated release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- run: echo "Triggered successfully"

.github/workflows/verify.yml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,59 @@ jobs:
1212
uses: actions/setup-node@v2
1313
with:
1414
node-version: 12.x
15+
- name: Cache node modules
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.npm
19+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-build-${{ env.cache-name }}-
22+
${{ runner.os }}-build-
23+
${{ runner.os }}-
1524
- name: Install dependencies
16-
run: npm ci
25+
run: npm install
1726
- name: Build font
1827
run: npm run build
28+
- name: Upload font files
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: fonts
32+
path: font/
33+
testpage:
34+
name: Test page
35+
needs: build
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v2
40+
- name: Use Node.js 12.x
41+
uses: actions/setup-node@v2
42+
with:
43+
node-version: 12.x
44+
- name: Cache node modules
45+
uses: actions/cache@v2
46+
with:
47+
path: ~/.npm
48+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-build-${{ env.cache-name }}-
51+
${{ runner.os }}-build-
52+
${{ runner.os }}-
53+
- name: Install dependencies
54+
run: npm install
55+
- name: Download font files
56+
uses: actions/download-artifact@v2
57+
with:
58+
name: fonts
59+
path: font/
60+
- name: Build test page
61+
run: node scripts/buildTestpage.js
62+
- name: Serve testpage
63+
run: ./node_modules/.bin/anywhere -s -p 8080 -d . -f /preview/testpage.html &
64+
- name: Take screenshot of testpage
65+
run: node scripts/preview.js
66+
- name: Upload testpage screenshot
67+
uses: actions/upload-artifact@v2
68+
with:
69+
name: preview
70+
path: screenshot.png

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ node_modules/
44
# Generated icon font and additional files
55
/font/*
66
preview/testpage.html
7+
8+
# Miscellaneous
9+
screenshot.png

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ You can also [download the latest version of the package][latest-release] and co
4040

4141
## Usage
4242

43-
Use any of the icons available in simple-icons by adding the following classes to a node in your HTML. Use the `simple-icons--color` class to apply the brand's color to the icon.
43+
Use any of the icons available in simple-icons by adding the following classes to a node in your HTML. Use the `simpleicons--color` class to apply the brand's color to the icon.
4444

4545
```html
4646
<i class="simpleicons simpleicons-[ICON NAME]"></i>
47-
<i class="simpleicons simpleicons-[ICON NAME] simple-icons--color"></i>
47+
<i class="simpleicons simpleicons-[ICON NAME] simpleicons--color"></i>
4848
```
4949

5050
Where `[ICON NAME]` is replaced by the icon name, for example:
5151

5252
```html
5353
<i class="simpleicons simpleicons-simpleicons"></i>
54-
<i class="simpleicons simpleicons-simpleicons simple-icons--color"></i>
54+
<i class="simpleicons simpleicons-simpleicons simpleicons--color"></i>
5555
```
5656

5757
In this example we use the `<i>` tag, but any inline HTML tag should work as you expect.

0 commit comments

Comments
 (0)