-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Showing
9 changed files
with
48 additions
and
2,225 deletions.
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ on: | |
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -12,16 +15,12 @@ jobs: | |
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Enable PNPM | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set node version to 20 | ||
uses: actions/setup-node@v4 | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
node-version: "20" | ||
bun-version: latest | ||
|
||
- name: Install | ||
run: pnpm install --frozen-lockfile | ||
run: bun install --frozen-lockfile | ||
|
||
- name: Fetch API # Calls Google Font Metadata to fetch the latest data from Google's Developer API | ||
run: npx gfm generate $GOOGLE_API_KEY | ||
|
@@ -35,29 +34,29 @@ jobs: | |
run: npx fontsource build | ||
|
||
- name: Remove Duplicates | ||
run: pnpm run check-duplicates | ||
run: bun run check-duplicates | ||
|
||
- name: Generate fontlist | ||
run: pnpm run fontlist | ||
run: bun run fontlist | ||
|
||
- name: Save GFM metadata | ||
run: pnpm run gfm-metadata | ||
run: bun run gfm-metadata | ||
|
||
- name: Save Fontsource metadata | ||
run: pnpm run metadata | ||
run: bun run metadata | ||
|
||
- name: Setup Git Config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "fontsource-bot" | ||
- name: Publish to NPM | ||
run: "pnpm run ci:publish" | ||
run: "bun run ci:publish" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Update Algolia Index | ||
run: pnpm run algolia | ||
run: bun run algolia | ||
env: | ||
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} |
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Build and Release [Manual] | |
|
||
on: [workflow_dispatch] | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -10,16 +13,12 @@ jobs: | |
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Enable PNPM | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set node version to 20 | ||
uses: actions/setup-node@v4 | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
node-version: "20" | ||
bun-version: latest | ||
|
||
- name: Install | ||
run: pnpm install --frozen-lockfile | ||
run: bun install --frozen-lockfile | ||
|
||
- name: Fetch API # Calls Google Font Metadata to fetch the latest data from Google's Developer API | ||
run: npx gfm generate $GOOGLE_API_KEY | ||
|
@@ -33,29 +32,29 @@ jobs: | |
run: npx fontsource build | ||
|
||
- name: Remove Duplicates | ||
run: pnpm run check-duplicates | ||
run: bun run check-duplicates | ||
|
||
- name: Generate fontlist | ||
run: pnpm run fontlist | ||
run: bun run fontlist | ||
|
||
- name: Save GFM metadata | ||
run: pnpm run gfm-metadata | ||
run: bun run gfm-metadata | ||
|
||
- name: Save Fontsource metadata | ||
run: pnpm run metadata | ||
run: bun run metadata | ||
|
||
- name: Setup Git Config | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "fontsource-bot" | ||
- name: Publish to NPM | ||
run: "pnpm run ci:publish" | ||
run: "bun run ci:publish" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Update Algolia Index | ||
run: pnpm run algolia | ||
run: bun run algolia | ||
env: | ||
ALGOLIA_ADMIN_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "font-files", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "1500+ open-source fonts bundled into neat packages.", | ||
"type": "module", | ||
"packageManager": "[email protected]", | ||
|
@@ -12,13 +12,13 @@ | |
"gfm-metadata": "tsx scripts/gfm-metadata.ts", | ||
"metadata": "tsx scripts/metadata.ts", | ||
"test": "fontsource create-verify --all", | ||
"ci:publish": "npx @fontsource-utils/publish publish patch --yes" | ||
"ci:publish": "npx @fontsource-utils/publish publish patch --yes --provenance" | ||
}, | ||
"author": "Ayuhito <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@fontsource-utils/cli": "0.4.2", | ||
"@fontsource-utils/publish": "^0.2.8", | ||
"@fontsource-utils/publish": "^0.3.0", | ||
"@types/node": "^20.12.7", | ||
"algoliasearch": "^4.23.3", | ||
"consola": "^3.2.3", | ||
|
Oops, something went wrong.