diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5335689 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build +on: [push, pull_request] +jobs: + lint: + name: Check formatting + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies + run: npm ci + + - name: build + run: npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 11efd7c..f8e8333 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,8 +12,8 @@ jobs: steps: - uses: actions/checkout@v4 - - name: install - run: npm i --legacy-peer-deps + - name: Install dependencies + run: npm ci - name: build run: npm run build diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 01c9afa..a2eddc5 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -14,7 +14,7 @@ jobs: node-version-file: '.nvmrc' - name: Install dependencies - run: npm install + run: npm ci - name: Check formatting run: |