Skip to content

Commit

Permalink
ci: add separate build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Feb 17, 2024
1 parent f9292a8 commit d46e5e2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci
- run: npm run build
7 changes: 1 addition & 6 deletions .github/workflows/lint-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ jobs:
cache: npm

- run: npm ci

# Check whether Prettier has errors.
- run: npm run check:prettier

# Check whether build is successful.
- run: npm run build
- run: npm run lint
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"check:prettier": "prettier --check .",
"dev": "tsc --watch",
"format": "prettier --write .",
"lint": "prettier --check .",
"prepublishOnly": "npm run build"
},
"dependencies": {
Expand Down

0 comments on commit d46e5e2

Please sign in to comment.