Skip to content

Commit 12ecfe5

Browse files
committed
chore: release
0 parents  commit 12ecfe5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+12686
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
name: Release Please
11+
runs-on: self-hosted
12+
outputs:
13+
release_created: ${{ steps.release.outputs.release_created }}
14+
steps:
15+
- uses: google-github-actions/release-please-action@v4
16+
id: release
17+
with:
18+
release-type: node
19+
package-name: '@storipress/fonts-next'
20+
terraform:
21+
if: ${{ needs.release-please.outputs.release_created }}
22+
needs: release-please
23+
name: Terraform
24+
runs-on: self-hosted
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: '18'
32+
cache: yarn
33+
34+
- name: Setup Terraform
35+
uses: hashicorp/setup-terraform@v3
36+
with:
37+
terraform_version: ~1.5.0
38+
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
39+
40+
- name: Build package
41+
run: |
42+
yarn
43+
yarn test
44+
yarn build
45+
46+
- name: Terraform Init
47+
id: init
48+
run: cd terraform && terraform init
49+
50+
- name: Terraform Apply
51+
run: cd terraform && terraform apply -auto-approve -input=false
52+
env:
53+
TF_VAR_aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
54+
TF_VAR_aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: self-hosted
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '18'
17+
cache: yarn
18+
19+
- name: Setup Terraform
20+
uses: hashicorp/setup-terraform@v3
21+
with:
22+
terraform_version: ~1.5.0
23+
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}
24+
25+
- run: yarn
26+
- run: yarn build
27+
28+
- name: Lint
29+
run: |
30+
yarn lint
31+
32+
- name: Test
33+
run: |
34+
yarn test
35+
36+
- name: Terraform Init
37+
id: init
38+
run: cd terraform && terraform init
39+
40+
- name: Terraform Validation
41+
run: cd terraform && terraform validate
42+
env:
43+
TF_VAR_aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
44+
TF_VAR_aws_secret_key: ${{ secrets.AWS_SECRET_KEY }}

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
font-list.ts
2+
fonts.css
3+
### vscode
4+
.vscode/*
5+
!.vscode/settings.json
6+
!.vscode/tasks.json
7+
!.vscode/launch.json
8+
!.vscode/extensions.json
9+
*.code-workspace
10+
11+
### yarn
12+
# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
13+
14+
.yarn/*
15+
!.yarn/releases
16+
!.yarn/plugins
17+
!.yarn/sdks
18+
!.yarn/versions
19+
20+
# if you are NOT using Zero-installs, then:
21+
# comment the following lines
22+
# !.yarn/cache
23+
24+
# and uncomment the following lines
25+
.pnp.*
26+
package.tgz
27+
node_modules
28+
dist
29+
.DS_Store

.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.vscode
2+
.yarn
3+
.yarnrc.yml
4+
scripts
5+
.eslintrc.js
6+
.eslintignore
7+
babel.config.js
8+
.browserslistrc
9+
terraform
10+
webpack.config.babel.ts
11+
tsconfig.json
12+
serve.json
13+
dist
14+
__tests__

.prettierrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
printWidth: 120
3+
semi: false
4+
singleQuote: true
5+
trailingComma: all

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["arcanis.vscode-zipfs", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"search.exclude": {
3+
"**/.yarn": true,
4+
"**/.pnp.*": true
5+
},
6+
"typescript.enablePromptUseWorkspaceTsdk": true,
7+
// Enable the ESlint flat config support
8+
"eslint.experimental.useFlatConfig": true,
9+
10+
// Disable the default formatter, use eslint instead
11+
"prettier.enable": true,
12+
"editor.formatOnSave": true,
13+
14+
// Auto fix
15+
"editor.codeActionsOnSave": {
16+
"source.fixAll.eslint": "always",
17+
"source.organizeImports": "never"
18+
},
19+
20+
// Silent the stylistic rules in you IDE, but still auto fix them
21+
"eslint.rules.customizations": [
22+
{ "rule": "style/*", "severity": "off" },
23+
{ "rule": "prettier/*", "severity": "off" },
24+
{ "rule": "*-indent", "severity": "off" },
25+
{ "rule": "*-spacing", "severity": "off" },
26+
{ "rule": "*-spaces", "severity": "off" },
27+
{ "rule": "*-order", "severity": "off" },
28+
{ "rule": "*-dangle", "severity": "off" },
29+
{ "rule": "*-newline", "severity": "off" },
30+
{ "rule": "*quotes", "severity": "off" },
31+
{ "rule": "*semi", "severity": "off" }
32+
],
33+
34+
// Enable eslint for all supported languages
35+
"eslint.validate": [
36+
"javascript",
37+
"javascriptreact",
38+
"typescript",
39+
"typescriptreact",
40+
"vue",
41+
"html",
42+
"markdown",
43+
"json",
44+
"jsonc",
45+
"yaml"
46+
]
47+
}

.yarn/releases/yarn-4.5.0.cjs

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
enableGlobalCache: true
2+
3+
initScope: storipress
4+
5+
nodeLinker: node-modules
6+
7+
npmScopes:
8+
storipress:
9+
npmPublishRegistry: "https://npm.pkg.github.com"
10+
npmRegistryServer: "https://npm.pkg.github.com"
11+
12+
yarnPath: .yarn/releases/yarn-4.5.0.cjs

CHANGELOG.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Changelog
2+
3+
## [2.13.0](https://github.com/storipress/icon-font/compare/v2.12.0...v2.13.0) (2023-10-23)
4+
5+
6+
### Features
7+
8+
* update icon fonte ver ([e0565f7](https://github.com/storipress/icon-font/commit/e0565f7f3001678275f6f886e70f1becc67d0a22))
9+
10+
## [2.12.0](https://github.com/storipress/icon-font/compare/v2.11.0...v2.12.0) (2023-06-19)
11+
12+
13+
### Features
14+
15+
* iconfont v2.12 ([9b144cf](https://github.com/storipress/icon-font/commit/9b144cf1d72fefcccfbc21d4dccd484bf4da02b4))
16+
17+
## [2.11.0](https://github.com/storipress/icon-font/compare/v2.10.0...v2.11.0) (2023-04-16)
18+
19+
20+
### Features
21+
22+
* upgrade icon font ([0e385e5](https://github.com/storipress/icon-font/commit/0e385e5c44c5fc53c0fd1523d34fbf47a2c95218))
23+
24+
## [2.10.0](https://github.com/storipress/fonts-next/compare/v2.9.0...v2.10.0) (2023-03-27)
25+
26+
27+
### Features
28+
29+
* upgrade iconfont to 2.10 ([befefcd](https://github.com/storipress/fonts-next/commit/befefcd6d5f3c387badc0f9f47b5006d1b3be878))
30+
31+
## [2.9.0](https://github.com/storipress/fonts-next/compare/v2.8.2...v2.9.0) (2023-02-24)
32+
33+
34+
### Features
35+
36+
* upgrade icon ([ec9a455](https://github.com/storipress/fonts-next/commit/ec9a455b6077be077580f5c02f86a1e983edd07c))
37+
38+
## [2.8.2](https://github.com/storipress/fonts-next/compare/v2.8.1...v2.8.2) (2023-02-01)
39+
40+
41+
### Bug Fixes
42+
43+
* remove database icon color ([d3f3d3e](https://github.com/storipress/fonts-next/commit/d3f3d3e61964a6bee3421bb9bf6fa133ba5dfa47))
44+
45+
## [2.8.1](https://github.com/storipress/fonts-next/compare/v2.8.0...v2.8.1) (2023-02-01)
46+
47+
48+
### Bug Fixes
49+
50+
* remove color ([5eb1ef7](https://github.com/storipress/fonts-next/commit/5eb1ef7c47d67b976843c0ffdb898970723999c8))
51+
52+
## [2.8.0](https://github.com/storipress/fonts-next/compare/v2.7.1...v2.8.0) (2023-01-17)
53+
54+
55+
### Features
56+
57+
* upgrade iconfont ([173d5fb](https://github.com/storipress/fonts-next/commit/173d5fb22a7b46b08b63b2459faa89a59b3bdf68))
58+
59+
## [2.7.1](https://github.com/storipress/fonts-next/compare/v2.7.0...v2.7.1) (2022-12-19)
60+
61+
62+
### Bug Fixes
63+
64+
* retry ([56db5cb](https://github.com/storipress/fonts-next/commit/56db5cbefc1f49dba2306ea348551b01f26d6a08))
65+
66+
## 2.7.0 (2022-12-19)
67+
68+
69+
### Features
70+
71+
* update iconfont ([9aa3d29](https://github.com/storipress/fonts-next/commit/9aa3d29698af96ee823ad864d7c0e95b1a353370))

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# fonts-next
2+
3+
Preview: https://fonts-next.pages.dev/demo
4+
5+
Repo for managing manager-next iconfonts
6+
7+
## What does this include?
8+
9+
- `iconfont`: The iconfont
10+
- `terraform`: Script to deploy the iconfont
11+
- `__tests__`: Tests to check icon font
12+
13+
## Update fonts
14+
15+
1. copy new fonts including version number
16+
2. run prettier on `style.scss`
17+
3. replace all `&:before` with `&::before`
18+
4. remove all line contain `color: #525252;` https://stackoverflow.com/questions/51618226/visual-studio-code-removing-lines-containing-criteria
19+
5. clean up `style.scss` via diff
20+
6. rebuild `style.scss` with `yarn sass style.scss:style.css`
21+
7. link `iconfont` to the newest version and remove the old version
22+
8. run `yarn test` and verify snapshot
23+
9. merge release branch
24+
25+
26+
## For step 4, how to remove all line contain `color: #525252;`?
27+
1. Cmd-F to open find.
28+
2. Input `color: #525252;` to find.
29+
3. Opt-Enter to select all of the instances of the string on the page.
30+
4. Cmd-L to broaden the selection to the entire line of each instance on the page.
31+
5. Delete/Backspace to remove those lines.

0 commit comments

Comments
 (0)