From ef05da627cfd287e356110c3d29489c735fe5d7d Mon Sep 17 00:00:00 2001 From: Xiangdong Zeng Date: Tue, 12 Sep 2023 17:17:17 +0800 Subject: [PATCH] ci: add github actions workflow --- .github/workflows/build.yml | 18 ++++++++++++++++++ package.json | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..6fc7f9e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: build +on: push +jobs: + build: + runs-on: ubuntu-latest + name: Build Dinkie Icons + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - uses: pnpm/action-setup@v2 + - name: Install dependencies + run: pnpm install + - name: Build + run: | + pnpm generate-src + pnpm build diff --git a/package.json b/package.json index a34474b..20fb680 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "type": "module", "scripts": { - "generate-src": "node glyphs/generate-src.js" + "generate-src": "node glyphs/generate-src.js", + "build": "pnpm -r --filter=./packages/** run build" }, "devDependencies": { "svgo": "^3.0.2",