diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..80ffe87 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 diff --git a/.github/workflows/lint-check.yaml b/.github/workflows/lint-check.yaml index 49c9028..3c4f7d2 100644 --- a/.github/workflows/lint-check.yaml +++ b/.github/workflows/lint-check.yaml @@ -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 diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 0e4b780..0000000 --- a/.prettierignore +++ /dev/null @@ -1 +0,0 @@ -LICENSE.md diff --git a/package.json b/package.json index fea6574..be6d268 100644 --- a/package.json +++ b/package.json @@ -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": {