Skip to content

Commit

Permalink
ci: add github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-zeng committed Sep 12, 2023
1 parent bcf51d9 commit ef05da6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ef05da6

Please sign in to comment.