From c41d604967375eca8fe4e24a5631dcf4cb3cfbbf Mon Sep 17 00:00:00 2001 From: Opliko Date: Sat, 14 Oct 2023 21:57:06 +0200 Subject: [PATCH] ci: add node check action --- .github/workflows/checks.yml | 50 ++++++++++++++++++++++++++++++++++++ package.json | 1 - 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/checks.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml new file mode 100644 index 0000000..2815c7d --- /dev/null +++ b/.github/workflows/checks.yml @@ -0,0 +1,50 @@ +name: Check and lint code + +on: + push: + branches: [ "alpha", "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "alpha", "main" ] + +jobs: + svelte-check: + name: Run svelte-check + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: pnpm + - name: check + run: pnpm run check + lint: + name: Lint code + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: setup node + uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: pnpm + - name: check + run: pnpm run lint diff --git a/package.json b/package.json index 74208b7..9cbaaab 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,6 @@ "check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "lint": "eslint .", - "semantic-release": "semantic-release", "prepare": "husky install" }, "devDependencies": {