Skip to content

Commit 87efc42

Browse files
committed
build font as npm package
1 parent 2f49faf commit 87efc42

File tree

6 files changed

+135
-46
lines changed

6 files changed

+135
-46
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Push 🐲
1+
name: Nix Build ❄️
22

33
on:
44
push: {}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish Packages 📦
2+
3+
on:
4+
push:
5+
paths:
6+
- 'font/**'
7+
8+
jobs:
9+
publish:
10+
name: Publish Packages 🚀
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
registry-url: 'https://npm.pkg.github.com'
25+
26+
- name: Enable Corepack
27+
run: corepack enable pnpm
28+
29+
- name: Install Dependencies
30+
run: pnpm install --frozen-lockfile
31+
32+
- name: Build Font
33+
run: pnpm --filter @nzbr/copperflame-font build
34+
35+
- name: Publish
36+
run: pnpm --filter @nzbr/copperflame-font publish --no-git-checks
37+
env:
38+
NODE_AUTH_TOKEN: ${{ github.token }}

font/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@nzbr/copperflame-font",
3+
"author": "nzbr",
4+
"version": "0.0.1",
5+
"license": "OFL-1.1",
6+
"scripts": {
7+
"build": "node build.js"
8+
},
9+
"dependencies": {
10+
"@iosevka/monorepo": "github:be5invis/Iosevka"
11+
},
12+
"publishConfig": {
13+
"directory": "dist",
14+
"linkDirectory": true
15+
}
16+
}

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"license": "ISC",
66
"scripts": {
77
"base16": "node base16/build.js",
8-
"font": "node font/build.js",
98
"build-postprocessors": "tsc -b web/html-postprocessors web/js",
10-
"build": "npm run base16 && npm run font",
9+
"build": "npm run base16",
1110
"install": "npm run build"
1211
},
1312
"dependencies": {

pnpm-lock.yaml

Lines changed: 77 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages:
2+
- 'font'

0 commit comments

Comments
 (0)