Skip to content

Commit 8c05203

Browse files
authored
chore: icon font embedding optimization (#332)
* refactor: set pipelines and local node equally * chore: slighly optimizing icon declarations
1 parent 018471c commit 8c05203

15 files changed

+187
-2
lines changed

.github/workflows/00-init.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ jobs:
1414
- name: ⬇️ Checkout repo
1515
uses: actions/checkout@v3
1616

17+
- name: Setup node equally to our local development version
18+
if: steps.npm-cache.outputs.cache-hit != 'true'
19+
# pick the Node version to use and install it
20+
# https://github.com/actions/setup-node
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 16
24+
25+
- name: Display node and npm version
26+
if: steps.npm-cache.outputs.cache-hit != 'true'
27+
run: |
28+
node --version
29+
npm --version
30+
1731
- name: 🔄 Init Cache Default
1832
uses: ./.github/actions/npm-cache
1933

.github/workflows/00-scan-secrets.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414

15+
- name: Setup node equally to our local development version
16+
if: steps.npm-cache.outputs.cache-hit != 'true'
17+
# pick the Node version to use and install it
18+
# https://github.com/actions/setup-node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
23+
- name: Display node and npm version
24+
if: steps.npm-cache.outputs.cache-hit != 'true'
25+
run: |
26+
node --version
27+
npm --version
28+
1529
- name: ↔ Extract branch name
1630
uses: ./.github/actions/extract-branch
1731
id: extract_branch

.github/workflows/01-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
- name: ⬇️ Checkout repo
1212
uses: actions/checkout@v3
1313

14+
- name: Setup node equally to our local development version
15+
if: steps.npm-cache.outputs.cache-hit != 'true'
16+
# pick the Node version to use and install it
17+
# https://github.com/actions/setup-node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
22+
- name: Display node and npm version
23+
if: steps.npm-cache.outputs.cache-hit != 'true'
24+
run: |
25+
node --version
26+
npm --version
27+
1428
- name: 🔄 Init Cache
1529
uses: ./.github/actions/npm-cache
1630

.github/workflows/01-get-publish-version.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ jobs:
2727
- name: ⬇ Checkout repo
2828
uses: actions/checkout@v3
2929

30+
- name: Setup node equally to our local development version
31+
if: steps.npm-cache.outputs.cache-hit != 'true'
32+
# pick the Node version to use and install it
33+
# https://github.com/actions/setup-node
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 16
37+
38+
- name: Display node and npm version
39+
if: steps.npm-cache.outputs.cache-hit != 'true'
40+
run: |
41+
node --version
42+
npm --version
43+
3044
- name: 🔄 Init Cache
3145
uses: ./.github/actions/npm-cache
3246

.github/workflows/01-lint.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
- name: ⬇️ Checkout repo
1212
uses: actions/checkout@v3
1313

14+
- name: Setup node equally to our local development version
15+
if: steps.npm-cache.outputs.cache-hit != 'true'
16+
# pick the Node version to use and install it
17+
# https://github.com/actions/setup-node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
22+
- name: Display node and npm version
23+
if: steps.npm-cache.outputs.cache-hit != 'true'
24+
run: |
25+
node --version
26+
npm --version
27+
1428
- name: 🔄 Init Cache
1529
uses: ./.github/actions/npm-cache
1630

.github/workflows/01-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
- name: ⬇️ Checkout repo
1212
uses: actions/checkout@v3
1313

14+
- name: Setup node equally to our local development version
15+
if: steps.npm-cache.outputs.cache-hit != 'true'
16+
# pick the Node version to use and install it
17+
# https://github.com/actions/setup-node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
22+
- name: Display node and npm version
23+
if: steps.npm-cache.outputs.cache-hit != 'true'
24+
run: |
25+
node --version
26+
npm --version
27+
1428
- name: 🔄 Init Cache
1529
uses: ./.github/actions/npm-cache
1630

.github/workflows/02-deploy-gh-pages.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ jobs:
2323
- name: ⬇ Checkout repo
2424
uses: actions/checkout@v3
2525

26+
- name: Setup node equally to our local development version
27+
if: steps.npm-cache.outputs.cache-hit != 'true'
28+
# pick the Node version to use and install it
29+
# https://github.com/actions/setup-node
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: 16
33+
34+
- name: Display node and npm version
35+
if: steps.npm-cache.outputs.cache-hit != 'true'
36+
run: |
37+
node --version
38+
npm --version
39+
2640
- name: 🔄 Init Cache
2741
uses: ./.github/actions/npm-cache
2842

.github/workflows/03-publish-packages.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ jobs:
2424
- name: ⬇ Checkout repo
2525
uses: actions/checkout@v3
2626

27+
- name: Setup node equally to our local development version
28+
if: steps.npm-cache.outputs.cache-hit != 'true'
29+
# pick the Node version to use and install it
30+
# https://github.com/actions/setup-node
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: 16
34+
35+
- name: Display node and npm version
36+
if: steps.npm-cache.outputs.cache-hit != 'true'
37+
run: |
38+
node --version
39+
npm --version
40+
2741
- name: 🔄 Init Cache
2842
uses: ./.github/actions/npm-cache
2943

.github/workflows/99-add-url-comment.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ jobs:
1111
- name: ⬇ Checkout repo
1212
uses: actions/checkout@v3
1313

14+
- name: Setup node equally to our local development version
15+
if: steps.npm-cache.outputs.cache-hit != 'true'
16+
# pick the Node version to use and install it
17+
# https://github.com/actions/setup-node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16
21+
22+
- name: Display node and npm version
23+
if: steps.npm-cache.outputs.cache-hit != 'true'
24+
run: |
25+
node --version
26+
npm --version
27+
1428
- name: 📡 Add comment
1529
uses: actions/github-script@v6
1630
with:

.github/workflows/99-auto-update-pr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
- name: ⬇️ Checkout repo
2323
uses: actions/checkout@v3
2424

25+
- name: Setup node equally to our local development version
26+
if: steps.npm-cache.outputs.cache-hit != 'true'
27+
# pick the Node version to use and install it
28+
# https://github.com/actions/setup-node
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: 16
32+
33+
- name: Display node and npm version
34+
if: steps.npm-cache.outputs.cache-hit != 'true'
35+
run: |
36+
node --version
37+
npm --version
38+
2539
- name: ↔ Create Pull Request
2640
uses: actions/github-script@v6
2741
id: create-pr

0 commit comments

Comments
 (0)