Skip to content

Commit

Permalink
remove await
Browse files Browse the repository at this point in the history
  • Loading branch information
beam41 committed Jul 1, 2024
1 parent c8eb36b commit 5e9bc10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:

jobs:
build:
runs-on: windows-2019
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
Expand All @@ -19,6 +19,8 @@ jobs:
cache: 'pnpm'
- name: Install Node modules
run: pnpm install
- name: Remove dist
run: rm -rf ./dist
- name: Build dist
run: pnpm build
- name: Commit file
Expand All @@ -35,7 +37,7 @@ jobs:
force: true
steam-to-readme-job:
needs: build
runs-on: windows-2019
runs-on: ubuntu-latest
name: Write steam svg
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const { writeFile, unlink } = require("fs").promises;
const { v4: uuidv4 } = require("uuid");
const { loadSync } = require("opentype.js");

const notoFont = await loadSync("../static/NotoSans-Regular.ttf");
const notoBoldFont = await loadSync("../static/NotoSans-Bold.ttf");
const notoFont = loadSync("../static/NotoSans-Regular.ttf");
const notoBoldFont = loadSync("../static/NotoSans-Bold.ttf");

/**
* @param {string} url
Expand Down

0 comments on commit 5e9bc10

Please sign in to comment.